Example app used in WebDev Krsand meetup about Angular April 19 2017
Download the repo or clone it and run npm install
.
If you want to start a new Angular project and want the features available in this example project, check out this repo
This repo contains 3 branches.
Angular-CLI generated project with:
- Hot Module Replacement
- Material Design
- npm start script runs tests and web development server in parallel
Same as in master branch plus:
- angular-cli is configured to use scss styles
- styles.scss used for global styles
You must have Python 2.7 installed for this branch to work Download Python from www.python.org
Same as in with-node-sass branch, plus:
- The Material Design Icons NPM package has been installed and angular-cli.json is set up to copy font files to the assets folder on build
In this branch, the Material Icons are not downloaded from the internet when app is started.
This project was generated with Angular CLI version 1.0.0.
Same as ng serve
.
Starts the web development server and listens on localhost:4200
Starts the web development server and runs unit tests in parallel
Same as ng build
.
Creates a JIT build.
To create a prod build: ng build --prod
To create a AOT prod build: ng build -aot --prod
Starts the web development server with Hot Module Replacement enabled.
Same as ng test
.
Runs the unit tests (all files ending with .spec.ts)
Same as ng e2e
.
Runs E2E-tests
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/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 e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.