ionic: android platform add a plugin, then what i have written are gone
i create a new ionic demo
ionic start mydemo blank
cd mydemo
ionic platform add android
ionic build android
original index.html in mydemo/platforms/android/assets/www
then i create controllers.js in mydemo/platforms/android/assets/www/js, add this js into index.html. change h1 content: “Ionic Blank Starter” to “My Ionic Demo”
then add cordova-sqlite-plugin
cordova plugin add GitHub - storesafe/cordova-sqlite-storage: A Cordova/PhoneGap plugin to open and use sqlite databases on Android, iOS and Windows with HTML5/Web SQL API
after plugin is installed, the controllers.js is gone, and index.html becomes the original one.
i try to install other plugins, there is the same problem.
did someone have the same issue? thank you