【发布时间】:2017-03-02 18:50:13
【问题描述】:
我正在尝试让 AlertifyJS (v1.9.0) 在我的 angular 2 应用程序中工作。 我在 vendor.ts 中有以下内容
import "alertifyjs/build/alertify.min.js";
import "alertifyjs/build/css/alertify.min.css";
通过以下调用来提醒
openConfirmationDialog(message: string, okCallback: () => any) {
alertify.confirm(message, function (e: any) {
if (e) {
okCallback();
} else {
}
});
}
但不断收到错误
: Cannot find name 'alertify'.
【问题讨论】:
标签: angular typescript2.0 alertifyjs