A query ajax call will let you send an additional data parameter the Ajax 
call, howerver with Angular I can't seem to get it.

I have tried just about ervery combination and have read the Angular 
documentation, but its all throwing errors.

*have have this*

/Make and return from the Ean Api
    testFactory.async = function() {
      $http.jsonp(url, data)
      .success(function (d) {
        data = d;
        //console.log(d);
        deffered.resolve();
      });
      return deffered.promise;
    };
    testFactory.data = function() { 
      return data; 
    };

    return testFactory;

    };

*I'm trying to put this whole object into my ajax call as data rather than 
trying to build a url string*

//Pass results from form
    var HotelListRequest = [{
        city: "Seattle",
        stateProvinceCode: "WA",
        countryCode: "US",
        arrivalDate: "12/5/2015",
        departureDate: "12/7/2015",
        RoomGroup: {
          Room: { "numberOfAdults": "2" }
        },
        numberOfResults: "25"
     }];

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to