Order Of Executing Requests With Angularjs's Ng-resource? Pt2 November 28, 2023 Post a Comment This is a follow-up question to Part1. Part 2: books_ctrl.js.coffee myApp.controller 'BooksCtrl', ($scope, Book) -> $scope.save = () -> if $scope.book.id? Book.upSolution 1: You can do:Book.save($scope.book, $scope.getBooks) CopyOr:Book.save($scope.book).$promise.then($scope.getBooks) Copy Share Post a Comment for "Order Of Executing Requests With Angularjs's Ng-resource? Pt2"
Post a Comment for "Order Of Executing Requests With Angularjs's Ng-resource? Pt2"