我使用primeng checkbox.Here,我想根据条件隐藏/显示和检查/未检查值。
条件1
If the first checkbox is checked the second and third checkbox will checked and show.
条件2:
If the first checkbox is unchecked the second and third checkbox will unchecked and hide.
.html
<div class="form-group">
&
下面是我的p-checkbox代码:
<div class="col-sm-8">
<p-checkbox
[(ngModel)]="allowParticipation"
binary="true"
label="I need to add red asterisk sign after this Label"
</p-checkbox>
</div>
如何在标签后面添加星号,使其如下图所示
(复选框)我需要在这个标签后面加上红色星号*
你知道这个问题吗?当我试图选中复选框时,会发生以下错误:
Checkbox.html:7 ERROR TypeError: Cannot read property 'concat' of undefined
at Checkbox.addValue (checkbox.ts:106)
at Checkbox.updateModel (checkbox.ts:76)
at Checkbox.onClick (checkbox.ts:66)
at Object.eval [as handleEvent] (Checkbox.html:7)
at handleEvent (view