2020年3月21日
30秒学会 Angular 片段 – ngIf else
*ngIf directive also supports else statement. <div *ngIf=”isLoading; else notLoading”>loading....
*ngIf directive also supports else statement. <div *ngIf=”isLoading; else notLoading”>loading....
You can create own helper component and use it instead of *ngIf. @Component({ selector: ‘loader’, te...
It’s possible to take a template as @Input for a component to customize the render @Component(...
While the best way of reusing your code is creating a component, it’s also possible to do it i...
Enums are great but they are not visible in Angular templates by default. With this little trick you...
In certain cases @Input and @Output properties can be named differently than the actual inputs and o...