Im looking for the best approach for a complex object change detection that is a property of a service.
example Updated:
export interface EngineType{
isGas: false,
isElectric: false,
liters: 6
cyclinders:6
}
export class CarService {
engine: EngineType
}
export class HondaService {
constructor(carService: CarService){}
carService.engine.isGas = true; // How can this change be detected?
}
I have alot of simple type properties on CarService that I would rather not apply getters and setters for each one.
thanks in advance.