This project was generated with angular-cli version 1.0.0-beta.21-1.
- Clone the project
- Run npm install
Tslint needs to be installed globally: npm install -g tslint
When using Visual Code, install the tslint addon to have a instant-linter when writing code.
Other IDE's should have a similar addon.
Alternatively, you can run ng lint
to check for linting errors.
The linter checks that lines are consistently indented. However it doesn't checks for indent spaces.
The indent space will be 2 spaces.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive/pipe/service/class
.
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 e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
You can just write sass in a .sass file, Angular-cli automatically compiles the code.