* update to beta.22 * Dart SDK 1.19.0 or later is required * minor edits to sample app titles to e2e tests pass * Renamed “Angular 2” to “Angular” so that shared e2e tests pass. * Tweak to QS prose.
12 lines
259 B
Dart
12 lines
259 B
Dart
// #docregion , import
|
|
import 'package:angular2/core.dart';
|
|
// #enddocregion import
|
|
|
|
// #docregion metadata
|
|
@Component(
|
|
selector: 'my-app',
|
|
template: '<h1>My First Angular App</h1>')
|
|
// #enddocregion metadata
|
|
// #docregion class
|
|
class AppComponent {}
|