Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

angular reload component on route param change

constructor(private router: Router) {
    this.router.routeReuseStrategy.shouldReuseRoute = function() {
      return false;
    };
  }
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #angular #reload #component #route #param #change
ADD COMMENT
Topic
Name
2+6 =