| Index: third_party/pkg/angular/lib/core_dom/common.dart
|
| diff --git a/third_party/pkg/angular/lib/core_dom/common.dart b/third_party/pkg/angular/lib/core_dom/common.dart
|
| index 80d943387bad92ccb83cd1ddb8493c8821923618..47e004d0fda872f3a458957a1f3699544fa3ff48 100644
|
| --- a/third_party/pkg/angular/lib/core_dom/common.dart
|
| +++ b/third_party/pkg/angular/lib/core_dom/common.dart
|
| @@ -4,7 +4,8 @@ List<dom.Node> cloneElements(elements) {
|
| return elements.map((el) => el.clone(true)).toList();
|
| }
|
|
|
| -typedef ApplyMapping(NodeAttrs attrs, Scope scope, Object dst);
|
| +typedef ApplyMapping(NodeAttrs attrs, Scope scope, Object dst,
|
| + FilterMap filters, notify());
|
|
|
| class DirectiveRef {
|
| final dom.Node element;
|
| @@ -19,7 +20,19 @@ class DirectiveRef {
|
|
|
| String toString() {
|
| var html = element is dom.Element ? (element as dom.Element).outerHtml : element.nodeValue;
|
| - return '{ element: $html, selector: ${annotation.selector}, value: $value }';
|
| + return '{ element: $html, selector: ${annotation.selector}, value: $value, type: $type }';
|
| }
|
| }
|
|
|
| +/**
|
| + * Creates a child injector that allows loading new directives, filters and
|
| + * services from the provided modules.
|
| + */
|
| +Injector forceNewDirectivesAndFilters(Injector injector, List<Module> modules) {
|
| + modules.add(new Module()..factory(Scope, (i) {
|
| + var scope = i.parent.get(Scope);
|
| + return scope.createChild(new PrototypeMap(scope.context));
|
| + }));
|
| + return injector.createChild(modules,
|
| + forceNewInstances: [DirectiveMap, FilterMap]);
|
| +}
|
|
|