How can Iisten to particular variable value change in the Angular component ?

Forums AngularHow can Iisten to particular variable value change in the Angular component ?
Staff asked 4 years ago

I want like, I have a variable in TypeScript defines in Angular component, so in any scenario if the value for that variable is changed, I need to make some operation like call the API or alert the user.

Is there any way in angular to achieve that ?

Subscribe

Select Categories