This project was generated with Angular CLI version 1.6.3.
Run yarn install or npm install, to install project's dependencies.
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.
If you want to serve to simulator or device use, follow the step below, the app will automatically reload if you change any of the source files.
- Edit the
config.xmlfile and update your IP address (tip: find/replace the text `MY_IP_ADDRESS:8200). - Run
ng build -e cordova, this will generate thewwwfolder. - Run
cordova prepare, this will generate the correct files to serve fromplatforms\androidfolder. - Run
cordova build android, this will build your apk file. - Run
ng serve -e cordova -port 8200 --proxy-config proxy.conf.js, this will start your dev server. - Run
remotedev --hostname=MY_IP_ADDRESS --port=8000, this will start your Redux Remote Server (if you don't have it, just install it using `npm install -g remotedev-server). - Run
cordova run android, start your app*.
ps*: If you see this error: Error: Current working directory is not a Cordova-based project., please check if ng serve does not delete your www folder, if so, just create an empty one and try start your app again.
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.
npm install --save @angular/animations@latest @angular/cdk@latest @angular/common@latest @angular/compiler@latest @angular/core@latest @angular/forms@latest @angular/http@latest @angular/material @angular/platform-browser@latest @angular/platform-browser-dynamic@latest @angular/router@latest
npm install --save-dev @angular/compiler-cli@latest @angular/language-service@latest
npm install --save rxjs@latest
npm install --save @ngrx/effects@latest @ngrx/router-store@latest @ngrx/store@latest @ngrx/store-devtools@latest
npm install --save-dev ngrx-store-freeze@latest
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
- Enable on your Android SDK -> Google USB or your phone driver
- Enable on your Android Phone developer mode (tap on Android Version Number) and USB debugging
- Check if your phone is hosted using
adb devices - Enter Chrome at
chrome://inspectand watch if your browser is able to connect - Run
ng serve -e cordova -port 8200, start your dev server - Run
cordova run android, start your app
If you're using Angular CLI 1.0.0-beta.28 or less, you need to uninstall angular-cli package. It should be done due to changing of package's name and scope from angular-cli to @angular/cli:
npm uninstall -g angular-clinpm uninstall --save-dev angular-cli
To update Angular CLI to a new version, you must update both the global package and your project's local package.
npm uninstall -g @angular/clinpm cache clean- if npm version is > 5 then use
npm cache verifyto avoid errors (or to avoid using --force) npm install -g @angular/cli@latest
rm -rf node_modules dist# usermdir /S/Q node_modules distin Windows Command Prompt; userm -r -fo node_modules,distin Windows PowerShellnpm install --save-dev @angular/cli@latestnpm install
Is this project util for you? Please consider buy me a coffee.