I am trying to enable buttonA if buttonB is not disabled (of course there are other conditions not relevant to question). I need to determine in my typescript whether buttonB is disabled. Obviously you can't use this.buttonB.nativeElement.disabled == true .... I just put it in as a placeholder. I am using Angular 2.
@ViewChild('buttonB') buttonB;
if (this.buttonB.nativeElement.disabled == true){
console.log('Button B is enabled');
} else console.log('Button is disabled');