[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/platform-browser/createApplication [Back]  [Original]

createApplication Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/platform-browser

createApplication

function
stable

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.

On this page

    arrow_upward_alt Back to the top

    API

    function createApplication(
      options?: ApplicationConfig | undefined,
      context?: BootstrapContext | undefined,
    ): Promise<ApplicationRef>;
    @paramoptionsApplicationConfig | undefined

    Extra configuration for the application environment, see ApplicationConfig for additional info.

    @paramcontextBootstrapContext | undefined

    Optional 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.

    @returnsPromise<ApplicationRef>

    A promise that returns an ApplicationRef instance once resolved.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page