|
|
Created by Iran Corrales Becerra
over 6 years ago
|
|
| Question | Answer |
| Create a component with CLI | ng g component <name> ng generate component <name> |
| Create a new app with CLI | ng new <app name> |
| default selector name | app-<component-name> |
| run angular with CLI | ng serve |
| EVENT structure | (click)="changeName()" |
| Angular EVENTS | mouseenter, click, drag, focus, submit, scroll, cut, copy, keydown, etc |
| ngClass | It is a Attribute directive |
| ngFor | it is a structural directive |
| ngIf | it is a structural directive |
| STRUCTURAL DIRECTIVES | ngIf, ngFor |
| ATTRIBUTE DIRECTIVES | ngClass |
| TYPE OF DIRECTIVES | COMPONENT, STRUCTURAL DIRECTIVES, ATTRIBUTE DIRECTIVES |
| {{ }} | Binding |
| Generate Directive CLI | ng generate directive |
Want to create your own Flashcards for free with GoConqr? Learn more.