diff options
Diffstat (limited to 'client/js/app.js')
| -rw-r--r-- | client/js/app.js | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/client/js/app.js b/client/js/app.js index 0e9c423..e2d5b9b 100644 --- a/client/js/app.js +++ b/client/js/app.js @@ -1,9 +1,16 @@ -// Declare main app -var mainApp=angular.module("mainApp",['ngRoute', 'ngSanitize']); - +/** + * The main app module instance + * @type angular.module.angular-1_3_6_L1749.moduleInstance + */ +var mainApp=angular.module("mainApp",['ngRoute', 'ngSanitize', 'ngCookies']); +/** + * Configure routeProvider + */ mainApp.config(['$routeProvider', function($routeProvider){ + + $routeProvider. when('/home',{ templateUrl: 'partials/home/main.html', @@ -15,4 +22,12 @@ mainApp.config(['$routeProvider', function($routeProvider){ }).otherwise({ redirectTo: '/home' }); -}]);
\ No newline at end of file +}]); + +/** + * Configure httpProvider + */ +mainApp.config(['$httpProvider', function($httpProvider){ + $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'; +}]); + |
