I am calling router.navigate on same page with some query string parameters. In this case, ngOnInit() does not call. Is it by default or do I need
router.navigate
ngOnInit()
On your navigation method,
this.router.routeReuseStrategy.shouldReuseRoute = () => false; this.router.onSameUrlNavigation = 'reload'; this.router.navigate(['/document'], {queryParams: {"search": currentSearch}});