Getting Started
Make sure you have Nodejs
NPM
and installedangular-cli
on your computer.
Download node https://nodejs.org/en/download
Open terminal and run npm install -g @angular/cli
Angular CLI Doc: https://cli.angular.io
Serve and build
Use terminal and navigate to project root.
Then run npm install
Development server
Run forng serve
a dev server. Navigate to http://localhost:4200. The app will automatically reload if you change any of the source files.
Code Scaffolding
Run tong generate component componentName
generate a new component. You can also useng generate directive/pipe/service/class/module
Build
Run tong build
build the project. The build artifacts will be stored in the dist/ directory. Use the flag-prod
for a production build.