Commit c54578b4 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

use full injection syntax

parent 4a3e4c23
......@@ -4,7 +4,7 @@
var app = angular.module('ctfApp', ['ui.router', 'ncy-angular-breadcrumb', 'ngCookies']);
app.config(function($stateProvider, $urlRouterProvider, $breadcrumbProvider) {
app.config(['$stateProvider', '$urlRouterProvider', '$breadcrumbProvider', function($stateProvider, $urlRouterProvider, $breadcrumbProvider) {
$urlRouterProvider.otherwise('/home');
......@@ -35,7 +35,7 @@
templateUrl: '/page/scoresheet.html'
});
});
}]);
app.factory('AppSettings', function() {
return {
......@@ -43,9 +43,9 @@
}
});
app.config(function ($httpProvider) {
app.config(['$httpProvider', function ($httpProvider) {
$httpProvider.interceptors.push(function ($q) {
$httpProvider.interceptors.push(['$q', function ($q) {
return {
'response': function (response) {
if (response.status === 401) {
......@@ -60,8 +60,8 @@
return $q.reject(rejection);
}
};
});
});
}]);
}]);
app.run(['$rootScope', '$location', '$cookieStore', '$http',
function ($rootScope, $location, $cookieStore, $http) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment