MCPcopy
hub / github.com/angular/angular / create

Function create

packages/router/test/create_url_tree.spec.ts:651–658  ·  view source on GitHub ↗
(
  relativeTo: ActivatedRoute,
  commands: readonly any[],
  queryParams?: Params,
  fragment?: string,
)

Source from the content-addressed store, hash-verified

649}
650
651function create(
652 relativeTo: ActivatedRoute,
653 commands: readonly any[],
654 queryParams?: Params,
655 fragment?: string,
656) {
657 return TestBed.inject(Router).createUrlTree(commands, {relativeTo, queryParams, fragment});
658}
659
660describe('createUrlTreeFromSnapshot', () => {
661 it('can create a UrlTree relative to empty path named parent', async () => {

Callers 1

Calls 2

createUrlTreeMethod · 0.80
injectMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…