/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
devtools/src/app/demo-app/todo/about/about.component.ts
27 строк
652 B
Shuaib Hasan Akib
refactor(devtools): remove redundant standalone: true as it is default now
14 ноя 2025, 19:38
14 ноя 2025, 19:38
16c5857
Код
Авторство
О чём код?
/** * @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 {Component} from '@angular/core'; @Component({ selector: 'app-about', template: ` <h1>About Component</h1> <p>This is the default about component (no guard).</p> `, }) export class AboutComponent {} @Component({ selector: 'app-protected-about', template: ` <h1>Protected About Component</h1> <p>This component is rendered when the canMatch guard allows access.</p> `, }) export class ProtectedAboutComponent {}