client/app/home/home_controller.js
changeset 55 10fd23382e76
parent 54 ccb586464a6f
child 97 0afdaa004ee1
--- a/client/app/home/home_controller.js	Thu Apr 02 12:06:51 2015 +0200
+++ b/client/app/home/home_controller.js	Thu Apr 02 13:11:12 2015 +0200
@@ -10,13 +10,6 @@
 			controller: 'homeCtrl'
 		});
 	})
-	.service('booksModel', function(searchApi) {
-		var _this = this;
-		
-		this.books = searchApi.getResource.query({action:'books', format:'json'}, function(data){
-			_this.books = data;
-		});
-	})
 	.controller('homeCtrl', function($scope, $location){
 		$scope.searchSubmit = function(){
 			$location.path('/search/' + $scope.q);