File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
modules/angular2/src/router Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,7 @@ export class Router {
253253 }
254254 return this . _outlet . canReuse ( instruction . component )
255255 . then ( ( result ) => {
256+ instruction . component . reuse = result ;
256257 if ( isPresent ( this . _childRouter ) && isPresent ( instruction . child ) ) {
257258 return this . _childRouter . _canReuse ( instruction . child ) ;
258259 }
Original file line number Diff line number Diff line change @@ -120,10 +120,6 @@ export class RouterOutlet {
120120 ( isPresent ( nextInstruction . params ) && isPresent ( this . _currentInstruction . params ) &&
121121 StringMapWrapper . equals ( nextInstruction . params , this . _currentInstruction . params ) ) ;
122122 }
123- return PromiseWrapper . resolve ( result ) . then ( ( result ) => {
124- // TODO: this is a hack
125- nextInstruction . reuse = result ;
126- return result ;
127- } ) ;
123+ return PromiseWrapper . resolve ( result ) ;
128124 }
129125}
You can’t perform that action at this time.
0 commit comments