Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

APP_BOOTSTRAP_LISTENER

A DI token that provides a set of callbacks to be called for every component that is bootstrapped.

See more...

      
      const APP_BOOTSTRAP_LISTENER: InjectionToken<readonly ((compRef: ComponentRef<any>) => void)[]>;
    

Description

Each callback must take a ComponentRef instance and return nothing.

(componentRef: ComponentRef) => void