/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/examples/common/location/ts/module.ts
28 строк
866 B
Matthieu Riegler
refactor(core): Migrate all packages with the `explicit-standalone-flag` schematic. (#58160)
14 окт 2024, 17:58
14 окт 2024, 17:58
09df589
Код
Авторство
О чём код?
/** * @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 {APP_BASE_HREF} from '@angular/common'; import {Component, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {HashLocationComponent} from './hash_location_component'; import {PathLocationComponent} from './path_location_component'; @Component({ selector: 'example-app', template: `<hash-location></hash-location><path-location></path-location>`, standalone: false, }) export class AppComponent {} @NgModule({ declarations: [AppComponent, PathLocationComponent, HashLocationComponent], providers: [{provide: APP_BASE_HREF, useValue: '/'}], imports: [BrowserModule], }) export class AppModule {}