mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
committed by
Joey Perrott
parent
a548c0333e
commit
b651648db6
@@ -6,8 +6,8 @@ import {bootstrapApplication} from '@angular/platform-browser';
|
||||
selector: 'app-root',
|
||||
standalone: true,
|
||||
template: `
|
||||
<label>Name:</label>
|
||||
<input type="text" [(ngModel)]="name" placeholder="Enter a name here" />
|
||||
<label for="name">Name:</label>
|
||||
<input type="text" id="name" [(ngModel)]="name" placeholder="Enter a name here" />
|
||||
<hr />
|
||||
<h1>Hello {{ name }}!</h1>
|
||||
`,
|
||||
|
||||
Reference in New Issue
Block a user