Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

angular navigate to the same route with different parameter

  openCategory(id: any, rev: any) {
    this.router.navigateByUrl('/', { skipLocationChange: true })
      .then(() => this.router.navigate(['/category/' + id + '/' + rev]));
  }
 
PREVIOUS NEXT
Tagged: #angular #navigate #route #parameter
ADD COMMENT
Topic
Name
6+4 =