O'Reilly logo

Ionic Cookbook by Hoc Phan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Picking and adding a contact

Your app sometimes may need to access the device contact list for searching, picking, or adding a contact. This ability can save users time instead of requesting them to enter the information manually.

In this section, you will learn how $cordovaContacts works. Also the app will demonstrate the Ionic tabs feature by creating a navigation view container that has two tabs (a Find tab for picking a contact and an Add tab for saving a contact). Then UI-Router will wire each tab to a specific template. The following is the screenshot of the app:

Picking and adding a contact

How to do it...

Here are the steps to follow this recipe:

  1. Create a blank Ionic app ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required