ng-zorro-antd

Can't bind to 'ngModelOptions' since it isn't a known property of 'input' in Angular 6

喜欢而已 提交于 2020-01-06 08:38:31
问题 Here is my HTML: <nz-form-item nzFlex [formGroup]="hulkForm"> <nz-form-label [nzSpan]="7" [nzFor]="hulkColumn.column" [nzRequired]="hulkColumn.require">{{hulkColumn.lable}}</nz-form-label> <nz-form-control [nzSpan]="17"> <input nz-input placeholder={{hulkColumn.placeholder}} [formControlName]="hulkColumn.name" [(ngModel)]="hulkColumn.model" [ngModelOptions]="{updateOn: 'blur'}" name="{{hulkColumn.name}}" *ngIf="hulkColumn.type!=='number'" > </nz-form-control> </nz-form-item> Here is the error

Adjust <nz-date-picker> (Ng-Zorro) width

左心房为你撑大大i 提交于 2019-12-11 08:32:42
问题 I'm using Ng-Zorro for template styling and am currently implementing an date picker, which I would like to have sitting flush with the dropdown menu above it. I'd like to manually adjust the width of the date-picker within the template, but I'm seeing this link saying that the width cannot be adjusted... Trying out html in-line styling did not do anything, so now I'm curious if anyone has been able to readjust the width of the nz-date-picker with Ng-Zorro. 回答1: May be you need to set the <nz