/dynamic_templates

Angular 2 - passing a template dynamically into a nested component

Primary LanguageTypeScript

Angular 2 - Dynamic template for nested components

This project demonstrates how to pass a template as a parameter to a nested component.

Demo

See it in action here.

Project notes

This project was generated with Angular CLI version 1.0.0-rc.1.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.