Copy environment.ts
file and create environment.dev.ts
in same directory. Replace apiUrl with target api endpoint.
Run npm run start:dev
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng test --code-coverage
. This will generate coverage folder in root directory.
Open index.html in browser.
Run ng e2e
to execute the end-to-end tests via Protractor.
https://marketplace.visualstudio.com/items?itemName=johnpapa.angular-essentials
Prettier https://prettier.io/
reference: https://itnext.io/settings-sync-with-vs-code-c3d4f126989
GitHub Gist: 4463fc0058cd17911b54edb8c5379e09
npm run compodoc
(compodoc -p tsconfig.json)npm run compodoc-serve
(compodoc -s tsconfig.json)