【发布时间】:2018-01-29 08:38:59
【问题描述】:
我使用 Visual Studio 在我的移动应用程序中安装了来自 GitHub 页面的 Calllog 插件 - https://github.com/dalyc/Cordova-CallLog-Plugin。在尝试将其导入 .ts 文件(打字稿文件)时,我无法做到这一点,因为收到错误消息为“{} module '*'”。
我正在尝试像这样导入:
从“通话记录”中导入 { CallLogService };
你能帮帮我吗?
【问题讨论】:
-
我相信您的 ionic/angular 应用程序是使用打字稿的 angular 的最新版本。您提到的插件适用于 angular 1.xxx。这将无法按预期工作
-
你能推荐一个在 IONIC 2 中使用的插件吗?
标签: cordova typescript ionic-framework ionic2 cordova-plugins