1
각도 응용 프로그램에서 mdl-select 구성 요소를 사용하려고합니다.재질 디자인 조명 mdl-select
Unhandled Promise rejection: Template parse errors:
Can't bind to 'value' since it isn't a known property of 'mdl-option'.
1. If 'mdl-option' is an Angular component and it has 'value' input, then verify that it is part of this module.
2. If 'mdl-option' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("tiple="true" placeholder="Select users">
<mdl-option mdl-ripple *ngFor="let hero of heroes" [ERROR ->][value]="hero.name">{{hero.name}}</mdl-option>
</mdl-select>
"): ng:///AppModule/[email protected]:59
수입은 어떻게 생깁니 까? 이 문제가 생길 때마다 가져 오기 또는 부트 스트랩 문제가 발생했습니다. –
여기의 설명과 같습니다. https://github.com/mseemann/angular2-mdl-ext/tree/master/src/components/select. 나는 select가 필요한 구성 요소에서 '@ angular-mdl/select';에서 가져온 {import {MdlSelectModule}}을 사용했습니다. – Ciprian
'@ angular-mdl/option'에서'import {MdlOptionComponent} '를 시도해 볼 수 있습니까? –