Ng-zorro-antd: nz-form-item-required don't recieve data

Created on 2 Dec 2017  ·  3Comments  ·  Source: NG-ZORRO/ng-zorro-antd

What problem does this feature solve?

When I want to hide/show the red * in FormItem label, I can't do it by this directive, for, the source code function NzFormItemRequiredDirective : this.nzRequired = true;

What does the proposed API look like?

[nzFormItemRequired]="required"

Most helpful comment

You can do this using [ngClass]="{'ant-form-item-required':required}"

All 3 comments

just set [nzRequired]="false"

You can do this using [ngClass]="{'ant-form-item-required':required}"

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DoesntWong picture DoesntWong  ·  3Comments

qdwxlong picture qdwxlong  ·  4Comments

Ximena-con picture Ximena-con  ·  3Comments

vthinkxie picture vthinkxie  ·  3Comments

IsaacHub picture IsaacHub  ·  3Comments