This is the simle starter for writing cordova app using angular 6
- Installed Angular CLI (You should know how to use it).
- Installed Cordova CLI (You should know how to use it).
- Installed everything (depends from what you need) for building android, ios or windows app.
- Clone all data from this repo.
- Go to project's folder.
- Type in Terminal:
- npm install => install dependencies;
- ng serve --open => for test if the angular project is run (in browser console you will see error net::ERR_ABORTED 404 (Not Found) because of <script src='cordova.js'></script>, that is normal!!!);
- If angular project is running stop serving the angular app (press in terminal Ctrl+C).
- Create www, plugins and platforms folders if they are not in project folder yet.
- Add cordova platform (android, ios or windows).
- If ./plugins folder is empty, add plugin cordova-plugin-device.
- Type in terminal ng build => For build Angular app in ./www folder.
- After Angular project builded (see it in ./www folder), type in terminal cordova build [platform]. For android platform cordova build android.
- Look for Cordova project structure.
- Look for Angular project structure.
- After 1. and 2. you can understand structure of this starter kit.