1disabled will disable an element whether it is true or false, it's presence means that the element will be disabled
2
3<button disabled></button>
4<button disabled="true"></button>
5<button disabled="false"></button>
6<button [attr.disabled]="true"></button>
7<button [attr.disabled]="false"></button>
8<button [disabled]="true"></button>
9
10----- OR FOR DIV
11
12.disabled-contenct {
13 pointer-events: none;
14 opacity: 0.4;
15}
16
17<div [class.disabled-contenct]="!isDisabledContent"></div>
18--------
19--- primer uporabe v Angular Template
20<input
21 [attr.disabled]="(areDocumentsConfirmed() | async) ? null : true"