refact(angular1_router): make the `$$router` binding one-time
This binding is never going to change so we can make it a one-time binding Closes #6978
This commit is contained in:
parent
a1c3be21ec
commit
cfc1e56dd8
|
@ -154,8 +154,8 @@ function ngOutletDirective($animate, $q: ng.IQService, $rootRouter) {
|
|||
throw new Error('Component is not a string for ' + instruction.urlPath);
|
||||
}
|
||||
|
||||
this.controller.$$template =
|
||||
'<' + dashCase(componentName) + ' $router="$$router"></' + dashCase(componentName) + '>';
|
||||
this.controller.$$template = '<' + dashCase(componentName) + ' $router="::$$router"></' +
|
||||
dashCase(componentName) + '>';
|
||||
this.controller.$$router = this.router.childRouter(instruction.componentType);
|
||||
this.controller.$$outlet = this;
|
||||
|
||||
|
|
Loading…
Reference in New Issue