illustration for Create Dynamic Components in Angular

Create Dynamic Components in Angular

23m closed-captioning
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.4
783
people completed
Bookmark
Download
RSS

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.

Credits

Kamil Khadeyev (illustration)

Learner Reviews

  • Mova.Club
    4 years ago
    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.

  • Prasad Parab
    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.

  • Ayush Gupta
    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.

  • Johan Sundström
    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!

  • Stanislav Spuzyak
    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.

  • Esa
    5 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.

Course Content

23m • 7 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers

    Introduction to Cloudflare Workers

    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout

    Create an eCommerce Store with Next.js and Stripe Checkout

    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use

    Practical Git for Everyday Professional Use

    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.