The following are the instructions to add camera support:
- Start a blank project (for example, MyCamera) and go to that folder:
$ ionic start MyCamera blank $ cd MyCamera
- Add the Cordova camera plugin and Ionic Native wrapper for the plugin using the following code:
$ ionic plugin add cordova-plugin-camera $ npm install --save @ionic-native/camera
You should be able to see a new folder, cordova-plugin-camera, being added to the /plugins folder.
- Replace ./src/pages/home/home.html with the following code:
<ion-header> <ion-navbar> <ion-title> Camera </ion-title> </ion-navbar></ion-header><ion-content padding> <ion-row class="center"> ...