I've found some undesired, at least for me, behaviour when the route changes. In the step 11 of the tutorial http://angular.github.io/angular-phonecat/step-11/app/#/phon
I found this solution. If you go to a new view the function gets executed.
var app = angular.module('hoofdModule', ['ngRoute']); app.controller('indexController', function ($scope, $window) { $scope.$on('$viewContentLoaded', function () { $window.scrollTo(0, 0); }); });