Let's say I have 2 components:
export class BaseComponent {
succesfullSave: boolean;
}
export class InheritComponent extends BaseComponent {
isButtonDisabled() {
return !super.succesfullSave;
}
}
in my InheritComponent html, I have a button with a disabled directive:
<button [disabled]="isButtonDisabled()"></button>
After changing the succesfullSave property value, the button is still enabled.
Angular doesn't look for value change when inheriting a value from superclass?