import { bootstrapApplication } from '@angular/platform-browser';
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
standalone: true,
template: `
<h3>Hello {{ name }}</h3>
<button (click)="name = 'Angular'">Reset</button>
`
})
export class App {
name = 'World';
}
bootstrapApplication(App);
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Angular Templates: Syntax</title>
</head>
<body>
<app-root></app-root>
</body>
</html>