Thanks but What can i do if i need this variable to next iteration.
Something like this:
$scope.nextId = "a";
$scope.addTask = function() {
for (i in $scope.completeConditions) {
conditionFactory.addCompleteConditions($scope.
completeConditions[i], data.toJSON().objectId, $scope.nextId).then(function(
data) {
$scope.nextId = data.toJSON().objectId;
})
};
};
in addCompleteConditions function argument $scope.nextId always is "a". How
make to change it between iterations?
--
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.