angular-api-factory
Advanced tools
Comparing version
{ | ||
"name": "angular-api-factory", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Gets an object literal with a desired API's structure and based on it, creates a well defined interface to handle ajax calls ($http).", | ||
@@ -5,0 +5,0 @@ "main": "./lib/apifactory.module.js", |
{ | ||
"name": "angular-api-factory", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Gets an object literal with a desired API's structure and based on it, creates a well defined interface to handle ajax calls ($http).", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/DiegoZoracKy/angular-api-factory", |
@@ -128,6 +128,4 @@ # Angular API Factory | ||
$scope.loadData = function(product) { | ||
Product.save(product).success(function(response) { | ||
console.log('Fetched successfully', response); | ||
}).error(function(data) { | ||
console.warn('Don\'t Panic... Maybe is just some required params that is missing'); | ||
Product.save(product).error(function(data) { | ||
console.warn('Don\'t Panic... Maybe is just some required params that is missing. Check:', data); | ||
}); | ||
@@ -134,0 +132,0 @@ }; |
14348
-0.59%240
-0.83%