title: How to fix: Can't resolve all parameters for ContactField: (?, ?, ?) : ionic-native/contacts error
body: <p>For those who try to use cordova-plugin-contacts of @ionic-native/contacts and get the error "Uncaught Error: Can't resolve all parameters for ContactField: (?, ?, ?)." on app launching.</p>
  
  <p>I found the solution:</p>
  
  <p>In the app.module.ts you need to only import Contacts and put only Contacts in the providers:</p>
  
  <pre><code>import { Contacts } from "@ionic-native/contacts/ngx";
  
  providers: [
      Contacts
    ]
  </code></pre>
  
  <p>Then just use it like in the documentation like the example:</p>
  
  <pre><code>import { Contacts, Contact, ContactField, ContactName } from '@ionic-native/contacts/ngx';
  
  constructor(private contacts: Contacts) { }
  
  let contact: Contact = this.contacts.create();
  
  contact.name = new ContactName(null, 'Smith', 'John');
  contact.phoneNumbers = [new ContactField('mobile', '6471234567')];
  contact.save().then(
    () =&gt; console.log('Contact saved!', contact),
    (error: any) =&gt; console.error('Error saving contact.', error)
  );
  </code></pre>
  
  <p>I hope it will help ;)</p>