I'm programming in Angular 13 framework and have a ChildComponet which has a few @Input()
's. I'm trying to determine when the value of my inputs are modified from the parent component.
I have a "latLonPickerComponent" which has @Input()
's "latitude" and "longitude". These values will be "undefined" to start but may change to a valid number later on (once an http request finishes running in the parent). I'd like to know (in the child component) when these new values come in from the parent.
I've looked into ngOnChanges as well as @Input-setter-getter but these methods all seem to ALSO change when the values of latitude and longitude are changed WITHIN the child component (unless I'm doing something wrong)