From 09ee3ab7b42512ee14b1e86b7989204a2649eb93 Mon Sep 17 00:00:00 2001 From: Viniciuscscience Date: Fri, 7 Nov 2014 07:11:05 -0300 Subject: [PATCH] renomeando views product para store, e aperfeicoando crawler --- public/app/APIs/compracerta_db_api.js | 38 ----------------------- public/app/Controllers/productlistCtrl.js | 13 -------- public/app/Views/productlist.html | 7 ----- 3 files changed, 58 deletions(-) delete mode 100755 public/app/APIs/compracerta_db_api.js delete mode 100644 public/app/Controllers/productlistCtrl.js delete mode 100644 public/app/Views/productlist.html diff --git a/public/app/APIs/compracerta_db_api.js b/public/app/APIs/compracerta_db_api.js deleted file mode 100755 index 3ff7aef..0000000 --- a/public/app/APIs/compracerta_db_api.js +++ /dev/null @@ -1,38 +0,0 @@ - -app.factory("services", ['$http', function($http) { - var serviceBase = '/compracerta/services/'; - var obj = {}; - - //where u will code the api service - - obj.getProductList = function(pname){ - var teste = [ - { - name: "Iphone", - price: 2000, - isRemoved: false, - link: "www.google.com" - - }, - { - name: "Ps4", - price: 4000, - isRemoved: false, - link: "www.cade.com" - }, - { - name: "Oculus Rift", - price: 3000, - isRemoved: false, - link: "www.yahoo.com" - } - ]; - - return teste; - }; - - - - return obj; - } - ]); diff --git a/public/app/Controllers/productlistCtrl.js b/public/app/Controllers/productlistCtrl.js deleted file mode 100644 index 5f3f6c8..0000000 --- a/public/app/Controllers/productlistCtrl.js +++ /dev/null @@ -1,13 +0,0 @@ - -app.controller('productlistCtrl', function($scope, $rootScope) { - -$scope.deleteProduct = function (name) - { - $rootScope.productlist.forEach(function(product){ - if (product.name == name) - product.isRemoved = true; - }); - product.isRemoved = true; - }; - -}); diff --git a/public/app/Views/productlist.html b/public/app/Views/productlist.html deleted file mode 100644 index 3f10ecf..0000000 --- a/public/app/Views/productlist.html +++ /dev/null @@ -1,7 +0,0 @@ -
-
{{product.name}} {{product.price}} - - -
-
-
\ No newline at end of file