mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f271021e19
This commit adds an input to `RouterOutlet` that allows developers to pass data from a parent component to the outlet components. Setting the `routerOutletData` input on `RouterOutlet` makes the value available to the child component injectors via the `ROUTER_OUTLET_DATA` token. This token uses a `Signal` type to allow updating the input value and propogating it to the token rather than needing to make the value static. resolves #46283 PR Close #57051
1.6 KiB
1.6 KiB
API Report File for "@angular/router_testing"
Do not edit this file. It is a report generated by API Extractor.
import { ComponentFixture } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import { ExtraOptions } from '@angular/router';
import * as i0 from '@angular/core';
import * as i1 from '@angular/router';
import { ModuleWithProviders } from '@angular/core';
import { Routes } from '@angular/router';
import { Type } from '@angular/core';
import { WritableSignal } from '@angular/core';
// @public
export class RouterTestingHarness {
static create(initialUrl?: string): Promise<RouterTestingHarness>;
detectChanges(): void;
readonly fixture: ComponentFixture<{
routerOutletData: WritableSignal<unknown>;
}>;
navigateByUrl(url: string): Promise<null | {}>;
navigateByUrl<T>(url: string, requiredRoutedComponentType: Type<T>): Promise<T>;
get routeDebugElement(): DebugElement | null;
get routeNativeElement(): HTMLElement | null;
}
// @public @deprecated
export class RouterTestingModule {
// (undocumented)
static withRoutes(routes: Routes, config?: ExtraOptions): ModuleWithProviders<RouterTestingModule>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<RouterTestingModule, never>;
// (undocumented)
static ɵinj: i0.ɵɵInjectorDeclaration<RouterTestingModule>;
// (undocumented)
static ɵmod: i0.ɵɵNgModuleDeclaration<RouterTestingModule, never, never, [typeof i1.RouterModule]>;
}
// (No @packageDocumentation comment for this package)