diff options
Diffstat (limited to 'src/widgets.js')
| -rw-r--r-- | src/widgets.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/widgets.js b/src/widgets.js index a1c4c5d6..42e608dd 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -1422,10 +1422,9 @@ angularWidget('ng:view', function(element) { var template; var changeCounter = 0; - $route.onChange(function(){ + this.$on('$afterRouteChange', function(){ changeCounter++; - })(); //initialize the state forcefully, it's possible that we missed the initial - //$route#onChange already + }); this.$watch(function(){return changeCounter;}, function() { var template = $route.current && $route.current.template; |
