I need a way to trigger a function every time the @Input value is accessed, regardless of whether it has changed or not. Here's what I have tried so far:
ngOnChanges(changes: { [propName: string]: SimpleChange }) {
if( changes['inputName'] && changes['inputName'].previousValue != changes['inputName'].currentValue ) {
this.func();
}
}
However, my issue is that the @Input value may remain the same (e.g., "a" changing to "a" again) and I still want the function to run. How can I achieve this?