You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Installing New
npm install -g @angular/cli
# Updating Existing:# Uninstall the current version of Angular CLI (if installed):
npm uninstall -g @angular/cli
# Clear the npm cache (optional but recommended):
npm cache clean --force
# Install the latest version of Angular CLI globally:
npm install -g @angular/cli@latest
# Verify the installation:
ng version
Create new project
ng new my-app
npm start
Add new component or service
ng generate component heroes
ng generate service hero
# .css
# .html
# .spec.ts
# .ts
keep Types in angular templates
// in template .html<ng-template[ngIf]="identity(node)"let-node="ngIf"><div>{{node.propertyIsRecognized}}</ng-template>// in .tsidentity(value: any): MyType{returnvalueasMyType;}