Now these days smart phones have at least one camera if not two. So many apps use the functionality of the user’s camera to click photos and access users phone gallery support to their apps. for adding cool features into thier app

Plugin

First, We need to install the Camera API plugin. From the ionic CLI, cd into your app/work directory

I am assuming you have already added the platform of your choice (android, ios or may be both)

Install Apache Cordova Camera Plugin

cordova plugin add org.apache.cordova.camera

We have install the Camera API and now we can use the Camera functionality by writing some Javascript code like below:

In code we are just creating a Controller (takePhoto) and injecting $scope and $cordovaCamera. Then create a function with $scope ($scope.takePhoto) and call into you UI view