Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: third_party/pkg/angular/demo/helloworld/web/helloworld.dart

Issue 256553002: Revert "Update all Angular libs (run update_all.sh)." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
+}
« no previous file with comments | « third_party/pkg/angular/demo/helloworld/pubspec.yaml ('k') | third_party/pkg/angular/demo/helloworld/web/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698