illustration for Create Dynamic Components in Angular
pro

Create Dynamic Components in Angular

23m closed-captioning
·
7 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.4
783
people completed
Published 7 years ago
|
Updated 4 years ago

Dynamic data gives us the opportunity to build dynamic components. Dynamic components are reusable and make building large-scale applications so much easier. In this course, Juri Stumpflohner will take us through the specific use case of of creating a tabbed component which allows us to dynamically define new tabs.

On our journey of implementing this component we will learn about how we can dynamically instantiate components, leveraging the ComponentFactoryResolver and ViewContainerRef.

Furthermore we will explore how to define view templates, how to pass them to our dynamically instantiated components as well as how to pass data into those templates. All of this will be powered by ngTemplateOutlet and ngTemplateOutletContext.

Learner Reviews

  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What was your strongest take away from this course?

    it would be great to give a bit of follow-up on what's done in a given clip: explain why.

    Mova.Club
    4 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What would make this course a 7 for you?

    I would like to render components dynamically..... there are 100 components and depending upon some conditions i want to load and render 1 or 2 components at a time. It would be great if you can guide me on this..... Thanks in advance.

    Prasad Parab
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What would make this course a 7 for you?

    The ng-container, ng-content, and ng-Template were all too much mixed up. I would have appreciated if these 3 were themselves a short course, and there was a recommendation coming that 'you should watch this course first in order to watch dynamic components'. Dynamic Components just needed a ViewcontainerRef. I would have appreciated if instead of ng-content, ng-container, ng-template, I would have got an explanation of each type of Ref- ViewContainerRef, ElementRef and TemplateRef and when to use which one. And then transitioned to Dynamic components.

    Ayush Gupta
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    It goes way beyond the basics. This is the first time I have encountered a tutorial explaining how to use dynamic component. It is a lot to take in but fortunately it is possible to watch the tutorial again.

    Thank You Juri!

    Johan Sundström
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Useful and easy to digest information. That is actually what I was looking for. Thank you.

    P.S.: would love to watch a course on how to implement filters for a set of data that is displayed as a table.

    Stanislav Spuzyak
    6 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I learned a lot of new. Thanks.

    Esa
    6 years ago