I-Multiselect-Drop-Down in Angular2 App bin mit und importieren das Paket wie:Können Import 'Multiselect-Dropdown' Paket in Angular2 App
import {MultiselectDropdown, IMultiSelectOption} from './multiselect-dropdown';
@Component({
directives: [MultiselectDropdown]
});
Aber die App läuft, habe ich den Fehler:
Syntax: Unexpected token: bei ZoneDelegate.invoke (http://localhost:3000/node_modules/angular2/bundles/angular2-polyfills.js:349:29) bei Zone.run (http://localhost:3000/node_modules/angular2/bundles/angular2-polyfills.js:242:44) bei http://localhost:3000/node_modules/angular2/bundles/angular2-polyfills.js:597:58 auswerten http://localhost:3000/app/multiselect-dropdown.ts Ladefehler http://localhost:3000/app/multiselect-dropdown.ts als "./multiselect-dropdown" von http://localhost:3000/app/boot.tsZoneDelegate.invoke @ angular2-polyfills.js: 349Zone.run @ angular2-polyfills.js: 242 (anonyme Funktion) @ angular2-polyfills.js: 597ZoneDelegate.invokeTask @ 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
Paket ich verwende ist: https://github.com/softsimon/angular-2-dropdown-multiselect
Import {Multi selectDropdown, IMultiSelectOption} aus './multiselect-dropdown'; ist der Pfad für die Datei multiselect-dropdown.ts und seine korrekte. –