Answers for "canactivate get current url"

1

canactivate get current url

canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
  console.log(state.url);//'candidates'
}
Posted by: Guest on December-21-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language