ng2-ui / auto-complete

Angular Auto Complete component and directive
https://ng2-ui.github.io/dist/#/auto-complete
MIT License
279 stars 123 forks source link

ERROR TypeError: Cannot read property 'bypassSecurityTrustHtml' of undefined #254

Closed erijin closed 7 years ago

erijin commented 7 years ago
list formatter + dynamic source is failing in angular project generated using cli
http://plnkr.co/edit/phruJFbkCy54kXnSgTEb?p=preview

above example working fine in plunkr and throwing exception in project generated using angular-cli

Error Summay

ERROR TypeError: Cannot read property 'bypassSecurityTrustHtml' of undefined at NguiAutoComplete.webpackJsonp.../../../../../src/app/app.component.ts.AppComponent.autocompleListFormatter [as listFormatter] (app.component.ts:32) at NguiAutoComplete.webpackJsonp.../../../../@ngui/auto-complete/dist/auto-complete.js.NguiAutoComplete.getFormattedListItem (auto-complete.js:26) at Object.eval [as updateRenderer] (NguiAutoCompleteComponent.html:27)