0
각도
에서 모듈 레지스터 내가 아래 모델 등록 할 때 :오류 인젝터
var angularTest = angularTest || {};
angularTest.app = angular.module('angularTest', ['xPlat.service', 'xPlat.controller', 'xPlat.directives', 'xPlat.repository']).run(function (DB) {
DB.init();
});
angular.module('xPlat.config', []);
angular.module('xPlat.directives', []);
angular.module('xPlat.controller', []);
angular.module('xPlat.service', []);
을 내가 올바른 사용과 컨트롤러가 아래 (이 오류가 아닙니다) :
angularTest.app.controller('logInController', ['$scope', '$http', function ($scope, $http) {
$scope.login = function() {
var request = $http({
method: "post",
url: "http://localhost:4309/Account/Login",
data: ""
})
}
}]);
하지만, 아래 컨트롤러에 오류가 있습니다 :
(function() {
'use strict';
angular.module("xPlat.controller", ['xPlat.service'])
.controller('itemController', function ($scope, itemService) {
// todo something
});
})();
위와 같이 logInController와 같이 변경하고 싶습니다. 어떻게 변경합니까?