You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letprovinces=newProvinceRestCollection();provinces.fetch({success: function(){//$scope.provinces bind to the selectbox in view$scope.provinces=provinces.map(function(person){returnperson.title;})}});
add success event listener in rest-collection like this :
letAmpersandRestCollection=require("ampersand-rest-collection");module.exports=AmpersandRestCollection.extend({url: 'https://jsonplaceholder.typicode.com/posts',success: function(){//$scope.provinces bind to the selectbox in view$scope.provinces=provinces.map(function(person){returnperson.title;})}});
The text was updated successfully, but these errors were encountered:
I use fetch() method like this :
but I want use it like this
add success event listener in rest-collection like this :
The text was updated successfully, but these errors were encountered: