/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
devtools/projects/demo-no-zone/src/app/app.component.ts
24 строки
516 B
Matthieu Riegler
build(devtools): cleanup dependencies (#60936)
29 апр 2025, 22:16
29 апр 2025, 22:16
2df00c9
Код
Авторство
О чём код?
/** * @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 {ChangeDetectorRef, Component} from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', }) export class AppComponent { counter = 0; constructor(private _cd: ChangeDetectorRef) {} increment(): void { this.counter++; this._cd.detectChanges(); } }