«angular-resource» 태그된 질문

3
AngularJS에서 $ resource 서비스 오류를 처리하는 방법
내 API에 요청을 보내고 AngularJS $ resource 모듈을 사용하고 있습니다. $ http와 다르기 때문에 오류를 처리하는 방법을 모르겠습니다. 내 서비스 : var appServices = angular.module('app.services', ['ngResource']); appServices.factory('Category', ['$resource', function($resource){ return $resource('/apicategoryerr/?format=:format', {}, { query: { method: 'GET', params: { format: 'json'}, isArray: true, } }); }]); 내 컨트롤러 : ... …
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.