<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script>
import {
Component
} from '@angular/core';
@Component({
selector: 'my-app',
template: `<h1>Hello {{name}}</h1>`
})
export class AppComponent {
name = 'Angular';
}
</script>
</head>
<body>
<my-app>Loading AppComponent content here ...</my-app>
</body>
</html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script>
import {
Component
} from '@angular/core';
@Component({
selector: 'my-app',
template: `<h1>Hello {{name}}</h1>`
})
export class AppComponent {
name = 'Angular';
}
</script>
</head>
<body>
<my-app>Loading AppComponent content here ...</my-app>
</body>
</html>