Detect variable change?

Is it possible to detect a change in a variable?

I have the following:

@Input('name') name: string;

I would like to call a function whenever a change occurs in this "name" variable.

Is it possible?

+4
source share

Source: https://habr.com/ru/post/1657945/


All Articles