Hi Sander,
This is just to simplify my example, in a real case I am binding this data
to view and saving on form submit.
On Friday, 10 July 2015 09:12:59 UTC+3, Sander Elias wrote:
>
> Hi Dainius,
>
> service.getItem({ id: itemId}).$promise.then(function (data) {
> data.$save(); //<-- why are you saving data back to the server you just
> fetched???
> });
>
> 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.