Fix: SubControllers not working due to breaking changes in AngularJS 1.3 where global functions as controllers are no longer allowed. Overrode the setting with allowGlobals() config.

This commit is contained in:
tanshu 2014-12-27 12:39:29 +05:30
parent 7c54e4b0c7
commit e27424c41e
2 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,7 @@ var EmployeeAttendanceSubController = ['$scope', function ($scope) {
};
$scope.isDirty = function () {
return !angular.equals($scope.original, $scope.item)
return !angular.equals($scope.original, $scope.item);
};
}];
EmployeeAttendanceController.resolve = {

View File

@ -113,6 +113,9 @@ var overlord = angular.module('overlord', ['overlord.directive', 'overlord.filte
.config(['$httpProvider', function ($httpProvider) {
$httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
}])
.config(['$controllerProvider', function ($controllerProvider) {
$controllerProvider.allowGlobals();
}])
.config(['$httpProvider', function ($httpProvider) {
$httpProvider.interceptors.push('responseInterceptor');
}])