- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
function httpGet(url, params) {
var deferred = $q.defer();
$http.get(url, {params: params}).then(function (response) {
deferred.resolve(response);
}, function (response) {
deferred.reject(response);
});
return deferred.promise;
}
P.S. JavaScript не защищаю.