MCPcopy
hub / github.com/angular/angular / WithUrlTree

Class WithUrlTree

packages/router/test/router_link_spec.ts:288–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287 it('can use a UrlTree as the input', async () => {
288 @Component({
289 template: '<a [routerLink]="urlTree">link</a>',
290 imports: [RouterLink],
291 })
292 class WithUrlTree {
293 urlTree = inject(Router).createUrlTree(['/a/b/c']);
294 }
295 TestBed.configureTestingModule({providers: [provideRouter([])]});
296
297 const fixture = TestBed.createComponent(WithUrlTree);

Callers

nothing calls this directly

Calls 3

ComponentInterface · 0.90
injectFunction · 0.90
createUrlTreeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…