I'm facing a strange issue while filling a model from a API result.
My model looks like this:
import {Company} from './../api/odata/data/Company';
export class MyModel {
...
isEnabled = false;
....
constructor(data: Company= null) {
try {
this.isEnabled = !data.isDisabled;
...
}
...
}
When I fill the data model, if data.isDisabled equals false, this.isEnabled should be true, but it's returning false...