Skip to content

Instantly share code, notes, and snippets.

@alexkoretzki
Created February 1, 2016 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexkoretzki/aa1426c4a9fc9cc7055e to your computer and use it in GitHub Desktop.
Save alexkoretzki/aa1426c4a9fc9cc7055e to your computer and use it in GitHub Desktop.
angular.module('myApp').
service('compareCartsInServerService', function($http) {
this.getData=function(cart){
return $http.post('compareCart/',cart);
}}
);
angular.module('myApp').controller('mainCartController', ['$scope','compareCartsInServerService', function($scope,compareCartsInServerService,){
/
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment