Instale a CLI angular
npm install -g @angular/cli
ng new my-dream-app
cd my-dream-app
ng serve
2 Programmers 1 Bug
npm install -g @angular/cli
ng new my-dream-app
cd my-dream-app
ng serve
/* @latest is optional */
npm install -g @angular/cli@latest
# install angular-cli global
npm install -g @angular/cli
# create an angular app
ng new my-app
# get angular-cli details
ng help
# get version
ng version
# run angular app
ng serve
npm install -g @angular/cli //make sure you have node/npm installed
ng new <appname> // eg: ng new my-app
cd <appname> // cd my-app
ng serve
//generate component:
ng g c foldername/componentname -m basemodulename
//generate module
ng g m modulename --routing
content_copy
ng help
ng generate --help