Skip to content

Instantly share code, notes, and snippets.

View osmancansiz's full-sized avatar
:octocat:
Working

Osman Cansız osmancansiz

:octocat:
Working
View GitHub Profile
@osmancansiz
osmancansiz / deep-search
Created October 19, 2021 09:26
Deep Nested Objects Search
@osmancansiz
osmancansiz / same-page-route
Last active January 14, 2021 06:58
Angular Same Page Routing with Params (Force Reload/Refresh)
constructor(private router: Router){
// override the route reuse strategy
this.router.routeReuseStrategy.shouldReuseRoute = function(){
return false;
}
this.router.events.subscribe((evt) => {
if (evt instanceof NavigationEnd) {
// trick the Router into believing it's last link wasn't previously loaded
this.router.navigated = false;