I have never looked at angular before and I am working on a project that uses it extensively, I am quite confused by the promise api code.
If a function returns promise.then (which I gather is called when the promise is fulfilled) is this the result of the promise function? Is there any blocking when you do this as the result isnt immediately available?
A crude example:
$scope.refreshFilters = function (filters) {
var promise;
promise = getConfig(filters);
return promise.then(function (data) {
return data.availableContent;
});
};
Do calls to the refreshFilters function need to block now because the result isnt available immediately?