angular/devtools/projects/demo-no-zone/src/app/app.component.ts
Matthieu Riegler 2df00c9b4b build(devtools): cleanup dependencies (#60936)
Removing `platform-browser-dynamic` because we don't need it anymore.

PR Close #60936
2025-04-29 12:16:16 -07:00

24 lines
516 B
TypeScript

/**
* @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();
}
}