Sitelet https://web.archive.org/web/20240920155725/https://angular.dev/api/router/createUrlTreeFromSnapshot/
@angular/router

createUrlTreeFromSnapshot

function

Creates a UrlTree relative to an ActivatedRouteSnapshot.

  
    createUrlTreeFromSnapshot(  relativeTo: ActivatedRouteSnapshot,  commands: any[],  queryParams?: Params,  fragment?: string): UrlTree;
  
  
Jump to details