Thank you. The "data" here should mean form fields, right? How do I prepare 
the form fields, and then transfer to the "data"?



On Tuesday, April 1, 2014 8:00:59 PM UTC+8, Sander Elias wrote:
>
> Hi T M,
>
> Sure, but it’s easier to show you code, if I know what it is you want 
> resolved.
> $http should be ina service most off the time!
>
>    var data = { name:'name',etc:'etc'}
>    $http.post("/saveData",data)
>        .success(function (response) { console.log('ok',response) })
>        .error(function (response) { console.log('uhoh',response) })
>
>    $http.put("/saveData",data)
>        .success(function (response) { console.log('ok',response) })
>        .error(function (response) { console.log('uhoh',response) })
>
> You mean something like that?
>
> Regards
> Sander
>

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