Suppose I want to make an $http.post() call that has several values in the
data hash, and I wish to specify fields to be passed into it.

What I have now is:

                    $http.post('/ajax/listen',

                        {

                        'cache': false,

                        'data': {'conversation': 0},

                        'timeout': 1000,

                        }).success(repeatEr).error(repeatEr);

What is the correct way to set POST variables like 'conversation' to some
numeric or string value? Is this correct, and/or a preferred way of
specifying that information?

Thanks,


-- 
[image: Christos Jonathan Seth Hayward] <http://jonathanscorner.com/>
Christos Jonathan Seth Hayward, an Orthodox Christian author.

Amazon / Kindle <http://amazon.com/author/cjshayward> * *Author
<http://cjshayward.com/>* * Author Bio <http://jonathanscorner.com/author/>
 * *Email <[email protected]>* *
Facebook<http://www.facebook.com/christos.jonathan.hayward>
 * Fan Page <http://fan.cjshayward.com/> * Google
Plus<http://jonathanscorner.com/plus>
 * LinkedIn <http://www.linkedin.com/in/jonathanhayward> * *Professional
<http://jonathanhayward.com/>* * Twitter<http://twitter.com/JonathansCorner>
 * *Web <http://jonathanscorner.com/>* * What's
New?<http://jonathanscorner.com/>
If you read just *one* of my books, you'll want *The Best of Jonathan's
Corner <http://www.amazon.com/dp/1478219912>*.

-- 
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