I tried this function:
public hireDisableForm() {
const dis = this.person.birthDate == '' || this.person.passportNumber == '' || this.person.passportSerie == '';
return (!dis) ? null : dis;
}
It return me true, I checked this in console.log().
Using:
<button class="hire1" [disabled]="hireDisableForm()">Save</button>
It does not disable button.
truebutton[disabled] {background-color:red}. If you inspect the element in the dev tools you should see that it is disabled.