Order Dynamic Components Inside an Angular 2 ViewContainer

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

By default, when you generate components, they will simply be added to the page in order, one after another. Angular 2 provides methods on the ViewContainer that allow you to reorder components once they’ve been created and provide the order that you want.