- In order to know the angular cli version, use command
ng --version
- To create a new project (say first-project), use command
ng new first-project
- In order to run the angular project, use command
ng serve
- In order to create an angular component (say helloworld), use command
ng generate component helloworld
- setInterval is a JavaScript API that lets you run a function at regular time intervals (takes 2 arguements - callback function + time interval)
- In order to loop over a certain variable in html, use *ngFor (directive) in the element.
- Similar to the *ngFor, *ngIf also works..
- Lifecycle hooks in angular website (different methods and its uses)
- The [property] selector is used in CSS to style elements that have that particular property. For example,
<div property></div>
- In order to create an angular module (say view), use command
ng generate module view
- The view/prefix to the name in the bg generate command actually tells Angular CLI which folder to create the files in. And so, which module the component needs to be associated with. eg:
ng generate component view/view-component
-
Notifications
You must be signed in to change notification settings - Fork 0
kmskpraveen/Learning-Angular
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published