I have a component that I pass an Input variable(listType). On the component that I include this other component that needs an Input variable I have a function that I can set listType with different values based on the button they user click. This is working fine.
The issue I'm having is that I want to create a refresh button, that will basically just refresh the data with whatever value the user have it set to the (listType). So I created the following function on my parent component
refreshData() {
this.listType = this.listType;
}
When I do this, nothing happens, the component that I'm passing listType does not call the ngOnChanges. Anything I need to do so the ngOnChanges detect that?