mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
15b54ce8dd
This reverts commit dd9f9d7d44.
PR Close #54805
27 lines
646 B
TypeScript
27 lines
646 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.io/license
|
|
*/
|
|
|
|
import {ChangeDetectorRef, Component, inject, OnInit} from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.scss'],
|
|
})
|
|
export class AppComponent implements OnInit {
|
|
private _cd = inject(ChangeDetectorRef);
|
|
|
|
ngOnInit(): void {
|
|
chrome.devtools.network.onNavigated.addListener(() => {
|
|
window.location.reload();
|
|
});
|
|
|
|
this._cd.detectChanges();
|
|
}
|
|
}
|