我尝试在我的开发环境中使用angular2-multiselect-dropdown。但是我无法显示相同的信息,并且出现了最大调用堆栈大小超出问题。但是它在服务器生产环境中完美运行。
https://www.npmjs.com/package/angular2-multiselect-dropdown
代码
<angular2-multiselect *ngIf="typeLoaded"
[data]="typeGroup" [(ngModel)]="selectedTypeGroup"
[ngModelOptions]="{standalone: true}" [settings]="settingsTypeGroup"
(onSelect)="selectAssignType($event)"
(onDeSelect)="deSelectAssignType($event)"
(onSelectAll)="selectAllAssignType($event)"
(onDeSelectAll)="deSelectAllAssignType($event)">
</angular2-multiselect>
堆栈跟踪
AngularMultiSelect.html:4 ERROR RangeError: Maximum call stack size exceeded
at callWithDebugContext (core.es5.js:13020)
at Object.debugCheckAndUpdateView [as checkAndUpdateView] (core.es5.js:12553)
at ViewRef_.webpackJsonp.../../../core/@angular/core.es5.js.ViewRef_.detectChanges (core.es5.js:10122)
at AngularMultiSelect.webpackJsonp.../../../../angular2-multiselect-dropdown/multiselect.component.js.AngularMultiSelect.onFilterChange (multiselect.component.js:344)
at SafeSubscriber._next (multiselect.component.js:91)
at SafeSubscriber.webpackJsonp.../../../../rxjs/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:236)
at SafeSubscriber.webpackJsonp.../../../../rxjs/Subscriber.js.SafeSubscriber.next (Subscriber.js:185)
at Subscriber.webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber._next (Subscriber.js:125)
at Subscriber.webpackJsonp.../../../../rxjs/Subscriber.js.Subscriber.next (Subscriber.js:89)
at Subject.webpackJsonp.../../../../rxjs/Subject.js.Subject.next (Subject.js:55)
at DataService.webpackJsonp.../../../../angular2-multiselect-dropdown/multiselect.service.js.DataService.setData (multiselect.service.js:10)
at ListFilterPipe.webpackJsonp.../../../../angular2-multiselect-dropdown/list-filter.js.ListFilterPipe.transform (list-filter.js:11)
at checkAndUpdatePureExpressionInline (core.es5.js:11244)
at checkAndUpdateNodeInline (core.es5.js:12096)
at checkAndUpdateNode (core.es5.js:12058)