| Index: third_party/pkg/angular/demo/helloworld/web/helloworld.dart
|
| diff --git a/third_party/pkg/angular/demo/helloworld/web/helloworld.dart b/third_party/pkg/angular/demo/helloworld/web/helloworld.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..338e33bb6c5900a0b3f4b257afba8fd98a4118a0
|
| --- /dev/null
|
| +++ b/third_party/pkg/angular/demo/helloworld/web/helloworld.dart
|
| @@ -0,0 +1,20 @@
|
| +import 'package:angular/angular.dart';
|
| +
|
| +// This annotation allows Dart to shake away any classes
|
| +// not used from Dart code nor listed in another @MirrorsUsed.
|
| +//
|
| +// If you create classes that are referenced from the Angular
|
| +// expressions, you must include a library target in @MirrorsUsed.
|
| +@MirrorsUsed(override: '*')
|
| +import 'dart:mirrors';
|
| +
|
| +@NgController(
|
| + selector: '[hello-world-controller]',
|
| + publishAs: 'ctrl')
|
| +class HelloWorldController {
|
| + String name = "world";
|
| +}
|
| +
|
| +main() {
|
| + ngBootstrap(module: new Module()..type(HelloWorldController));
|
| +}
|
|
|