softsimon / ngx-bootstrap-multiselect

Angular 9+ Dropdown Multiselect Bootstrap
332 stars 198 forks source link

'ng-template' is not a known element: #174

Closed flexkiran closed 7 years ago

flexkiran commented 7 years ago

I am getting following error Unhandled Promise rejection: Template parse errors: 'ng-template' is not a known element:

  1. If 'ng-template' is an Angular component, then verify that it is part of this module.
  2. If 'ng-template' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("" (click)="!option.isLabel && setSelected($event, option)" [class.dropdown-header]="option.isLabel">[ERROR ->]<ng-template [ngIf]="option.isLabel">{{ option.name }}<a *ngIf="!option.isLabel" href=""): MultiselectDropdown@0:2214 ; Zone: ; Task: Promise.then ; Value:
chris--jones commented 7 years ago

This is a breaking change with angular 4, there's already an issue raised.

chris--jones commented 7 years ago

Please refer to #168 for updates.