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

Unified Diff: third_party/pkg/angular/test/io/test_files/main.dart

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 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/test/io/test_files/main.dart
diff --git a/third_party/pkg/angular/test/io/test_files/main.dart b/third_party/pkg/angular/test/io/test_files/main.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2a32a4b15c06a6d9d58c3f923d7acb39acf8b289
--- /dev/null
+++ b/third_party/pkg/angular/test/io/test_files/main.dart
@@ -0,0 +1,33 @@
+library test_files.main;
+
+import 'package:angular/core/module.dart';
+
+@NgDirective(
+ children: NgAnnotation.TRANSCLUDE_CHILDREN,
+ selector:'[ng-if]',
+ map: const {'.': '=>ngIfCondition'})
+class NgIfDirective {
+ bool ngIfCondition;
+}
+
+@NgComponent(
+ selector: 'my-component',
+ map: const {
+ 'attr': '@attr',
+ 'expr': '=>expr'
+ },
+ template: '<div>{{ctrl.inline.template.expression}}</div>',
+ exportExpressionAttrs: const ['exported-attr'],
+ exportExpressions: const ['exported + expression']
+)
+class MyComponent {
+ @NgOneWay('another-expression')
+ String anotherExpression;
+
+ @NgCallback('callback')
+ set callback(Function) {}
+
+ set twoWayStuff(String abc) {}
+ @NgTwoWay('two-way-stuff')
+ String get twoWayStuff => null;
+}

Powered by Google App Engine
This is Rietveld 408576698