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

Unified Diff: third_party/pkg/angular/lib/angular.dart

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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
« no previous file with comments | « third_party/pkg/angular/karma.conf.js ('k') | third_party/pkg/angular/lib/bootstrap.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/angular/lib/angular.dart
diff --git a/third_party/pkg/angular/lib/angular.dart b/third_party/pkg/angular/lib/angular.dart
index c797df7b64bfd10033bcbf4790c8bb18f8bd7421..d7d9e08a3973d59ab9adec9334f019b18a1aa3b4 100644
--- a/third_party/pkg/angular/lib/angular.dart
+++ b/third_party/pkg/angular/lib/angular.dart
@@ -11,22 +11,56 @@
library angular;
import 'dart:html' as dom;
-import 'dart:js';
+import 'dart:js' as js;
import 'package:di/di.dart';
import 'package:di/dynamic_injector.dart';
+/**
+ * If you are writing code accessed from Angular expressions, you must include
+ * your own @MirrorsUsed annotation or ensure that everything is tagged with
+ * the Ng annotations.
+ *
+ * All programs should also include a @MirrorsUsed(override: '*') which
+ * tells the compiler that only the explicitly listed libraries will
+ * be reflected over.
+ *
+ * This is a short-term fix until we implement a transformer-based solution
+ * which does not rely on mirrors.
+ */
+@MirrorsUsed(targets: const[
+ 'angular',
+ 'angular.core',
+ 'angular.core.dom',
+ 'angular.filter',
+ 'angular.perf',
+ 'angular.directive',
+ 'angular.routing',
+ 'angular.core.parser.dynamic_parser',
+ 'angular.core.parser.lexer',
+ 'perf_api',
+ 'List',
+ 'NodeTreeSanitizer',
+],
+metaTargets: const[
+ 'NgInjectableService',
+ 'NgDirective',
+ 'NgController',
+ 'NgComponent'
+])
+import 'dart:mirrors';
+
import 'package:angular/core/module.dart';
import 'package:angular/core_dom/module.dart';
import 'package:angular/directive/module.dart';
import 'package:angular/filter/module.dart';
import 'package:angular/perf/module.dart';
import 'package:angular/routing/module.dart';
-import 'package:js/js.dart' as js;
export 'package:di/di.dart';
export 'package:angular/core/module.dart';
export 'package:angular/core_dom/module.dart';
-export 'package:angular/core/parser/parser_library.dart';
+export 'package:angular/core/parser/parser.dart';
+export 'package:angular/core/parser/lexer.dart';
export 'package:angular/directive/module.dart';
export 'package:angular/filter/module.dart';
export 'package:angular/routing/module.dart';
« no previous file with comments | « third_party/pkg/angular/karma.conf.js ('k') | third_party/pkg/angular/lib/bootstrap.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698