'use strict'; angular.module('BlurAdmin', [ 'ngAnimate', 'ui.bootstrap', 'ui.sortable', 'ui.router', 'ngTouch', 'toastr', 'smart-table', "xeditable", 'ui.slimscroll', 'ngJsTree', 'angular-progress-button-styles', 'BlurAdmin.theme', 'BlurAdmin.pages' ]).run(scrollTop); function scrollTop($rootScope) { $rootScope.$on('$stateChangeSuccess', function(){ window.scrollTo(0, 0); }); }