I need to detect value changes in @Input
binding angular and execute a function when the value is changed
@Component({
selector: 'my-comp',
...
})
...
@Input() myValue
//detect myValue changes
<my-comp [myValue]= "val"></my-comp>
I need to execute some code component class when val
changes.