MCPcopy Create free account
hub / github.com/angular/angular / WithUrlTree

Class WithUrlTree

packages/router/test/router_link_spec.ts:295–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293
294 it('can use a UrlTree as the input', async () => {
295 @Component({
296 template: '<a [routerLink]="urlTree">link</a>',
297 imports: [RouterLink],
298 })
299 class WithUrlTree {
300 urlTree = inject(Router).createUrlTree(['/a/b/c']);
301 }
302 TestBed.configureTestingModule({providers: [provideRouter([])]});
303
304 const fixture = TestBed.createComponent(WithUrlTree);

Callers

nothing calls this directly

Calls 3

ComponentInterface · 0.90
injectFunction · 0.90
createUrlTreeMethod · 0.45

Tested by

no test coverage detected