This project was generated with angular-cli version 1.0.0-beta.20-4 and cordova 6.4.0
With this project the following components are preinstalled:
- browser
- cordova-plugin-camera
- cordova-plugin-nativestorage
- lodash
- angular2-toaster
- bootstrap
- font-awesome
- jquery
You can use angular-cli for angular2 development.
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.
To run the complete cordova application, you first have to build your angular2 app using ng build. Use the -prod flag for a production build.
Then you're able to prepare your app for the target system using cordova run <platform> where platform could be browser.
A shortcut for deploying the app is available as NPM script.
Just run npm run browser.
Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class.
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.
To get more help for cordova use cordova --help.