title: I can’t use cordova plugins
body: <p>I want to use <code>$cordovaContacts</code>.
  I created an app with ionic. Then I copied '<code>ng-cordova.min.js</code>' to '<code>www</code>' folder. And I called it in my 'index.html'.
  Then I copied <code>http://ngcordova.com/docs/plugins/contacts/</code> to my controller js file.</p>
  
  <p>Then I copied this code to my app js file, too : </p>
  
  <pre><code>    angular.module('ngCordova.plugins.contacts', [])
  
    .factory('$cordovaContacts', ['$q', function ($q) {
  
      return {
        save: function (contact) {
          var q = $q.defer();
          var deviceContact = navigator.contacts.create(contact);
  
          deviceContact.save(function (result) {
            q.resolve(result);
          }, function (err) {
            q.reject(err);
          });
          return q.promise;
        },
  
        remove: function (contact) {
          var q = $q.defer();
          var deviceContact = navigator.contacts.create(contact);
  
          deviceContact.remove(function (result) {
            q.resolve(result);
          }, function (err) {
            q.reject(err);
          });
          return q.promise;
        },
  
        clone: function (contact) {
          var deviceContact = navigator.contacts.create(contact);
          return deviceContact.clone(contact);
        },
  
        find: function (options) {
          var q = $q.defer();
          var fields = options.fields || ['id', 'displayName'];
          delete options.fields;
          if (Object.keys(options).length === 0) {
            navigator.contacts.find(fields, function (results) {
              q.resolve(results);
            },function (err) {
              q.reject(err);
            });
          }
          else {
            navigator.contacts.find(fields, function (results) {
              q.resolve(results);
            }, function (err) {
              q.reject(err);
            }, options);
          }
          return q.promise;
        },
  
        pickContact: function () {
          var q = $q.defer();
  
          navigator.contacts.pickContact(function (contact) {
            q.resolve(contact);
          }, function (err) {
            q.reject(err);
          });
  
          return q.promise;
        }
  
        // TODO: method to set / get ContactAddress
        // TODO: method to set / get ContactError
        // TODO: method to set / get ContactField
        // TODO: method to set / get ContactName
        // TODO: method to set / get ContactOrganization
      };
    }]);
  </code></pre>
  
  <p>Finally I wrote this code:</p>
  
  <pre><code>&lt;ion-item ng-repeat="contact in contacts"&gt;
  {{contact.name}}
  &lt;/ion-item&gt;
  </code></pre>
  
  <p>But it doesn't work on my android device. (I didn't try on another device. I don't need the others now.)</p>
  
  <p>And console error:</p>
  
  <p><a href="https://i.stack.imgur.com/lopru.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lopru.png" alt="enter image description here"></a>: </p>
  
  <p>I researched on the internet. But I can't use any cordova or ionic plugin. I am new, sorry for English.</p>