SHARE
TWEET

Untitled

a guest Dec 23rd, 2014 145 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. angular.module('starter.services',[])
  2. .factory('mehPrep',['$http', function($http){
  3.         var mehObj, mehData, mehStatus;
  4.  
  5.         return function(){
  6.                 mehObj = {testData:"Test mehObj statement"};
  7.                
  8.                 $http({method: 'GET', url: 'https://meh.com',}). // I dont really know what im doing here
  9.                         success(function(data,status){
  10.                                 console.log("Query Successful");
  11.                                 mehStatus = status;
  12.                                 mehData = data;          
  13.                         }).
  14.                         error(function(data,status){
  15.                                 mehData = data || "Request failed";
  16.                                 mehStatus = status;
  17.                 });
  18.                
  19.                 mehObj = scrapeMeh(mehData);
  20.                
  21.                 return mehObj;
  22.         };
  23. }]);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top