项目作者: MichaelDimmitt

项目描述 :
Code for Advanced Angular Components Programming Talk.
高级语言: TypeScript
项目地址: git://github.com/MichaelDimmitt/angular-component.git
创建时间: 2020-05-19T05:18:41Z
项目社区:https://github.com/MichaelDimmitt/angular-component

开源协议:

下载


Two Advanced Angular Components

  1. 1. ngTemplateOutlet - ( ng-template and ng-container )
  2. a) store variables in the template.
  3. b) reuse html without creating a new component.
  4. c) ng-container to add additional ngFors or ngIfs
  5. 2. Decorator Component
  6. a) uses ngTemplateOutlet to render <content></content>.
  7. b) parent component -> middle decorator component -> child component.

Installation:

  1. git clone <project name>;
  2. cd <project name>;
  3. npm install;
  4. 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