This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ part of angular.routing;
62
62
class NgView implements DetachAware , RouteProvider {
63
63
static final Module _module = new Module ()
64
64
..bind (RouteProvider , toFactory: (i) => i.get (NgView ));
65
-
66
65
static module () => _module;
67
66
68
67
final NgRoutingHelper locationService;
@@ -113,10 +112,9 @@ class NgView implements DetachAware, RouteProvider {
113
112
_cleanUp ();
114
113
});
115
114
116
- var viewInjector = injector;
117
- if (modules != null ) {
118
- viewInjector = forceNewDirectivesAndFormatters (viewInjector, modules);
119
- }
115
+ var viewInjector = modules == null ?
116
+ injector :
117
+ forceNewDirectivesAndFormatters (injector, modules);
120
118
121
119
var newDirectives = viewInjector.get (DirectiveMap );
122
120
var viewFuture = viewDef.templateHtml != null ?
@@ -127,7 +125,6 @@ class NgView implements DetachAware, RouteProvider {
127
125
_scope = scope.createChild (new PrototypeMap (scope.context));
128
126
_view = viewFactory (
129
127
viewInjector.createChild ([new Module ()..bind (Scope , toValue: _scope)]));
130
-
131
128
_view.nodes.forEach ((elm) => element.append (elm));
132
129
});
133
130
}
You can’t perform that action at this time.
0 commit comments