ApplicationModule

This module includes the providers of @angular/core that are needed to bootstrap components via ApplicationRef.

class ApplicationModule { }

注解

@NgModule({ providers: APPLICATION_MODULE_PROVIDERS })