- Prepare
npm i cordova -g
npm install -g @angular/cli
- create
cordova create AppWrap com.tdtc.usedetails AppWrap
cordova create path [id [name]]
- Add Platforms
cd AppWrap
cordova platform add browser
index.html:
<script type="text/javascript" src="cordova.js"></script>
connects your Angular project to Cordova
Gen Angular dist files:
cd client
ng build --output-path=../AppWrap/www --base-href=./
cd AppWrap
cordova platform add browser
cordova run browser --port=4260