angular-cn/public/docs/_examples/quickstart/dart/ex1/web/main.dart

11 lines
235 B
Dart

// #docregion
import 'package:angular2/angular2.dart';
import 'package:angular2/bootstrap.dart';
@Component(selector: 'my-app', template: '<h1>My First Angular 2 App</h1>')
class AppComponent {}
main() {
bootstrap(AppComponent);
}