mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
30766d6b77
All components, directives and pipes will now use standalone as default. Non-standalone decorators have now . PR Close #58160
21 lines
495 B
TypeScript
21 lines
495 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 {Component} from '@angular/core';
|
|
import {Router} from '@angular/router';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.scss'],
|
|
standalone: false,
|
|
})
|
|
export class AppComponent {
|
|
constructor(public router: Router) {}
|
|
}
|