APP_BOOTSTRAP_LISTENER
一个 DI 令牌,该令牌提供了一组针对每个要引导的组件调用的回调。
A DI token that provides a set of callbacks to be called for every component that is bootstrapped.
const APP_BOOTSTRAP_LISTENER: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
说明
每个回调都必须接受 ComponentRef
实例,并且不返回任何内容。
Each callback must take a ComponentRef
instance and return nothing.
(componentRef: ComponentRef) => void