【发布时间】:2017-01-06 08:27:12
【问题描述】:
我在 Angular2 应用程序中使用 multiselect-dropdown 并导入包,如:
import {MultiselectDropdown, IMultiSelectOption} from './multiselect-dropdown';
@Component({
directives: [MultiselectDropdown]
});
但是在运行应用程序时,我得到了错误:
SyntaxError: Unexpected token : 在 ZoneDelegate.invoke (http://localhost:3000/node_modules/angular2/bundles/angular2-polyfills.js:349:29) 在 Zone.run (http://localhost:3000/node_modules/angular2/bundles/angular2-polyfills.js:242:44) 在http://localhost:3000/node_modules/angular2/bundles/angular2-polyfills.js:597:58 评估http://localhost:3000/app/multiselect-dropdown.ts 从http://localhost:3000/app/boot.tsZoneDelegate.invoke@angular2-polyfills.js:349Zone.run@angular2-polyfills.js:242(匿名函数)@angular2-polyfills.js:597ZoneDelegate.invokeTask@将http://localhost:3000/app/multiselect-dropdown.ts加载为“./multiselect-dropdown”时出错angular2-polyfills.js:382Zone.runTask @ angular2-polyfills.js:282drainMicroTaskQueue @ angular2-polyfills.js:500ZoneTask.invoke @ angular2-polyfills.js:452 content_script.js:2 http://localhost:3000/app/boot.ts
我正在使用的包是:https://github.com/softsimon/angular-2-dropdown-multiselect
【问题讨论】:
标签: angular