mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Updated examples to align with the latest Angular style: - Removed `standalone: false` since it is unnecessary. - Dropped module-based implementation in favor of standalone. PR Close #64167
23 lines
484 B
TypeScript
23 lines
484 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 {bootstrapApplication} from '@angular/platform-browser';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
template: 'Hello {{ name }}!',
|
|
})
|
|
class MyApp {
|
|
name: string = 'World';
|
|
}
|
|
|
|
export function main() {
|
|
bootstrapApplication(MyApp);
|
|
}
|