-1
.controller('Ctrlajax', ['$scope', 'version','$sce', '$resource', '$http',
function ($scope, version,$sce,$resource,$http) {
$scope.answer = 'Ожидание ответа от сервера.....';
require('ajax_module');
}])
ajax_module.js
define('ajax_module',['angular'],function($http){
var path = './././data/'
$http.get(path+'res.php').success(function(data){
debugger
$scope.answer = data;
});
})
오류 : catch되지 않은 형식 오류 : 함수 방법 $ 범위, $ HTTP를 통과하지 않는 정의되지?