Skip to content

MichaelDimmitt/angular-component

Repository files navigation

Two Advanced Angular Components

1. ngTemplateOutlet - ( ng-template and ng-container )
   a) store variables in the template.
   b) reuse html without creating a new component.
   c) ng-container … to add additional ngFor’s or ngIf’s


2. Decorator Component
   a) uses ngTemplateOutlet to render <content/>.
   b) parent component -> middle decorator component -> child component.

Installation:

git clone <project name>;
cd <project name>;
npm install;
npm start;

Example Scaffold:

ng g component customer-dashboard/components/smart-list

Why?

this project was created to add ngx admin to an existing application instead of using it as a starter project 🐉

Angular info for other developers

Scaffolding feature-modules with scaffolded components:
https://angular.io/guide/feature-modules

Link to presentation: https://docs.google.com/presentation/d/1iR1QiYsMq4BRo6Rs7pYDsqarBN0E8ckesEdygdv6enI/edit?usp=sharing