I'm working on a Web Progressive App using Angular 4. This app needs to be wrapped up in an Apache Cordova as a Hybrid app built for Android and iOS platforms.
I'm looking for a working boilerplate template for Cordova + Angular 4.
Cordova is using www
folder for web app and Angular 4 is using src
folder for web app. How to merge this two together to work?
Angular 'ng serve' should also work?
I finally manage to solve my problem.
Here is a working boilerplate:
https://github.com/NavCore/ngCordova
If you want to change the output directory of ng cli you can configure outDir
property in the .angular-cli.json as shown below:
"outDir": "../public",
Then you can use ng build
command to build the angular application in the outDir
that you've specified previously
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With