fix(angular1_router): support templateUrl components

This commit is contained in:
Peter Bacon Darwin
2016-02-10 16:59:26 -08:00
committed by Pete Bacon Darwin
parent e7470d557d
commit d4a4d81173
5 changed files with 82 additions and 51 deletions

View File

@ -25,7 +25,10 @@ describe('ngOutlet animations', function () {
});
registerComponent('userCmp', {
template: '<div>hello {{userCmp.$routeParams.name}}</div>'
template: '<div>hello {{userCmp.$routeParams.name}}</div>',
$routerOnActivate: function(next) {
this.$routeParams = next.params;
}
});
});