/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/core/src/metadata/do_bootstrap.ts
36 строк
1 KB
Matthieu Riegler
docs: fix bootstraping link
15 апр 2026, 19:25
15 апр 2026, 19:25
a46c647
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ApplicationRef} from '../application/application_ref'; /** * @description * Hook for manual bootstrapping of the application instead of using `bootstrap` array in @NgModule * annotation. This hook is invoked only when the `bootstrap` array is empty or not provided. * * Reference to the current application is provided as a parameter. * * See ["Bootstrapping"](/guide/ngmodules/overview#bootstrapping-an-application). * * @usageNotes * The example below uses `ApplicationRef.bootstrap()` to render the * `AppComponent` on the page. * * ```ts * class AppModule implements DoBootstrap { * ngDoBootstrap(appRef: ApplicationRef) { * appRef.bootstrap(AppComponent); // Or some other component * } * } * ``` * * @publicApi */ export interface DoBootstrap { ngDoBootstrap(appRef: ApplicationRef): void; }