鍍金池/ 問答/HTML/ 佐羅報(bào)錯(cuò) Can't bind to 'nzPlaceholder'

佐羅報(bào)錯(cuò) Can't bind to 'nzPlaceholder'

1.這是我的代碼 <nz-rangepicker [(ngModel)]="_dateRange"

                    [nzPlaceholder]="['Select start date', 'Select end date']"></nz-rangepicker>
                    已經(jīng)將佐羅導(dǎo)入,其他的組件都可以正常使用
                    

2.Can't bind to 'nzPlaceholder' since it isn't a known property of 'nz-rangepicker'.

  1. If 'nz-rangepicker' is an Angular component and it has 'nzPlaceholder' input, then verify that it is part of this module.
  2. If 'nz-rangepicker' 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. ("m class="bg-white p-15">
    <nz-rangepicker [(ngModel)]="_dateRange"

                [ERROR ->][nzPlaceholder]="['Select start date', 'Select end date']"></nz-rangepicker>

    <div class="sea"): ng:///AfterSaleModule/RefundComponent.html@15:24

'nz-rangepicker' is not a known element:

回答
編輯回答
尋仙

請問樓主這個(gè)問題最后怎么解決的

2018年8月26日 15:52