Configuration for the client.

This commit is contained in:
Your Name 2014-05-31 19:19:36 +02:00
parent 637fd10606
commit 249275bc0a
13 changed files with 53 additions and 28 deletions
app/scripts

View file

@ -40,8 +40,9 @@ angular.module('ffffng', [
}
};
})
.run(['$location', '$rootScope', function ($location, $rootScope) {
.run(function ($location, $rootScope, config) {
$rootScope.$on('$routeChangeSuccess', function (event, current) {
$rootScope.title = current.$$route.title;
$rootScope.config = config;
});
}]);
});