The previous blog wrote the Linux under the Cordova + Ionic environment of the building, today to do the first simple app to explain it
The app was created yesterday by the command line. After a good time today, the study found using the Ionic command to create
App is different from the app package created with the Cordova command.
Ionic creates a folder with a few more files and folders. Because the relevant information is relatively small. I haven't figured out his directory structure and our
You need to manipulate the folder to drink the directory.
Focus on the Cordova directory:
This directory is clear (Piugins is the plugin directory through the Cordova command introduced plug-ins will be put in here, platforms is the support platform directory through the Cordova command can introduce Android iOS and other platform support), we need to manipulate the page is www The next index.html this page is
The page to display when the app is generated. Modify the content here to make your own page.
Modify the Index.js page in the www/js/directory to operate the background and interact with the native API (Cordova provides a number of plugins that can be viewed on the website: http://cordova.apache.org/)
Specific operation drink plugin usage You can access a nice website:
Hui Zhi network Baidu Search
The first Cordova Android app under Linux