When the ngAfterViewInit() event is triggered, I am using the createComponent(this.queryparams) method to pass the query parameters value and dynamically load a component based on those parameters.
However, I have noticed that the component only loads once during the initial page load. Subsequent changes in the query parameter values do not trigger a reload of the component.
Is there a way to refresh or reload the ngAfterViewInit() event when the query parameter values change?