Angular 5 Learning Experience — Part 5
1 min readJul 9, 2018
Start Building App
This is continuation of previous parts i published . This post we will see how to build a default app with angular-cli
- make sure nodejs and npm isinstalled. node -v & npm -v will show the version installed
- npm install @angular/cli -g
- ng new calapp — style=scss — routing (calapp is the appname)
- cd calapp
- ng serve ( app will run on port http://localhost:4200 default)
- code . ( to open VScode if u installed already)
- In VS you can see the default code generated and reflect below structure
8) Change src\app\app.component.html and see changes on browser by hitting http://localhost:4200 (ng serve) should be running
Few other useful commands from ng
- ng -v ( will show version)
- ng generate component <<componentname>> ( to generate new component
- ng generate module <<module name>>
- ng build --env prod ( for building prod release
Stay tuned for next post