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
# create a new application in the current directory
ng init
Angular New App creation
# create a new directory and run ng init inside the new directory
ng new <app-name>
Angular serve application
# first goto current directory there is an application and put this command
ng serve
Angular ng genrate
# if you want to genrate a new component
ng generate component <component-name>
ng g c <component-name>
Angular ng genrate
# if you want to genrate a new component
ng generate component <component-name>
ng g c <component-name>
Angular ng genrate
# if you want to genrate a new component
ng generate component <component-name>
ng g c <component-name>
# generate class
ng generate class <class-name>
ng g c <class-name>
# generate class
ng generate class <class-name>
ng g cl <class-name>
# generate directive
ng generate directive <directive-name>
ng g c <directive-name>
# generate enum
ng generate enum <enum-name>
ng g c enum
# generate module
ng generate module <module-name>
ng g c <module>
# generate pipe
ng generate pipe <pipe-name>
ng g p <pipe>
# generate service
ng generate service <service-name>
ng g p <service-name>
Not helpful