填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

APP_BOOTSTRAP_LISTENER

一個 DI 令牌,該令牌提供了一組針對每個要引導的元件呼叫的回呼(Callback)。

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)[]>;
    

說明

每個回呼(Callback)都必須接受 ComponentRef 實例,並且不返回任何內容。

Each callback must take a ComponentRef instance and return nothing.

(componentRef: ComponentRef) => void