如何在离子2中添加触点?

时间:2017-02-20 12:28:34

标签: angular ionic2

我正在尝试保存手机中的联系电话。

http://tphangout.com/ionic-2-making-use-of-the-contacts-plugin/

我正在尝试在手机中保存我的联系电话,但我收到这样的错误..我正在放置一张图片,你可以看一下...... enter image description here

1 个答案:

答案 0 :(得分:0)

看起来this.contacts.create();失败了,联系人'未定义。这意味着未定义类型联系人的联系人/ null

你检查了你的原生插件安装吗?

如果正确安装了try Contacts.create()而不是this.contact.create()