【发布时间】:2022-02-26 16:52:23
【问题描述】:
当这个长度条件满足时,如何禁用下面的 div。请检查并帮助我..
<div *ngIf="setUpWizardForm.get('projectTitle').value && slpPlat && (setUpWizardForm.get('projectTitle').value.length + slpPlat.length) > 50" >
<span
class="error-message"
style="padding-left:15px;"
>
Project Name - maximum of 50 characters allowed
</span>
</div>
<!-- Here want to disable that div in below button. Please help -->
<button
href="javascript:void(0);"
class="slm-user-action-btn"
[disabled]='setUpWizardForm.invalid || !projectNameFilled'
*ngIf="currentSlide==3"
type="button"
(click)="projectConfigured(templateInProcess)"
>
Configure
</button>
【问题讨论】:
标签: angular