Skip to content
JS

Create Dynamic Components in Angular

Course on egghead by Juri Strumpflohner

View on egghead (opens in a new tab)
24 min
LengthVideo runtime
Subscription
Price modelegghead plan
7
Lessons
4.0
Rating out of 58 ratings on egghead
Dec 2017
Published18 Dec 2017

About this course

Description from egghead

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 .

What it covers

7 lessons
  1. 1Angular Tab Component Overview
  2. 2Declare a Template within a Template using `ng-template` in Angular
  3. 3Pass a Reference of an ng-template to a Component and Render it in Angular
  4. 4Pass Data to a Dynamic ng-template using ngTemplateOutletContext in Angular
  5. 5Define an Anchor Point Where to Render Dynamic Components in Angular
  6. 6Dynamically Instantiate an Angular Component
  7. 7Destroy a Dynamically Instantiated Angular Component

Similar Angular courses

  1. Understand How to Style Angular Components

    egghead · Juri Strumpflohner · 9 lessons · 4.3 from 13 ratings · Aug 2017

    24 minSubscription
    egghead94.3 (13)Aug 2017
  2. Create Dynamic Forms in Angular

    egghead · Juri Strumpflohner · 7 lessons · 4.3 from 11 ratings · Dec 2017

    27 minSubscription
    egghead74.3 (11)Dec 2017
  3. SEO Friendly Progressive Web Applications with Angular Universal

    egghead · Bram Borggreve · 14 lessons · 4.7 from 5 ratings · Jul 2018

    28 minSubscription
    egghead144.7 (5)Jul 2018
  4. The 80/20 Rule - Build a strong AngularJS Foundation

    Master.dev · Lukas Ruebbelke · 2 lessons · Aug 2014

    17 minFree
    Master.dev2Aug 2014
  5. Server Side integration with AngularJS

    Master.dev · Lukas Ruebbelke · 2 lessons · Aug 2014

    15 minFree
    Master.dev2Aug 2014
  6. AngularJS In Action

    Master.dev · Lukas Ruebbelke · 2 lessons · Aug 2014

    12 minFree
    Master.dev2Aug 2014
  7. Intermediate1 h
    CourseraJul 2024
  8. Angular.js for Beginners: Directives

    Coursera · Shineta Horton, M. Ed · Jun 2023

    Beginner1 h 30 min
    CourseraJun 2023

A hyphen means the provider's catalogue does not state the value.

Same topic, nearest in length, up to three from any one provider.

Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.

    Compare