30秒学会 Angular 片段 – Access DOM Element
In rare cases when you need to access DOM element directly, you can get it by requiring ElementRef i...
In rare cases when you need to access DOM element directly, you can get it by requiring ElementRef i...
Sometimes you need to get access to global document. To simplify unit-testing, Angular provides it t...
Under the hood Angular compiles structural directives into ng-template elements, e.g.: <!– This ...
Angular allows us to control the way module preloading is handled. There are 2 strategies provided b...
*ngIf directive also supports else statement. <div *ngIf=”isLoading; else notLoading”>loading....
It is possible to add global event listeners in your Components/Directives with HostListener. Angula...
It is possible to use SVG tags in your Angular component, to create beautiful graphs and visualizati...
You can create own helper component and use it instead of *ngIf. @Component({ selector: ‘loader’, te...
It’s possible to use @ViewChild (also @ViewChildren and @ContentChild/Children) to query for c...
It’s possible to take a template as @Input for a component to customize the render @Component(...