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.