createApplication
Create an instance of an Angular application without bootstrapping any components. This is useful for the situation where one wants to decouple application environment creation (a platform and associated injectors) from rendering components on a screen. Components can be subsequently bootstrapped on the returned ApplicationRef.
API
function createApplication( options?: ApplicationConfig | undefined, context?: BootstrapContext | undefined, ): Promise<ApplicationRef>;
ApplicationConfig | undefinedExtra configuration for the application environment, see ApplicationConfig for additional info.
BootstrapContext | undefinedOptional context object that can be used to provide a pre-existing platform injector. This is useful for advanced use-cases, for example, server-side rendering, where the platform is created for each request.
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/platform-browser/createApplication