KABA-CCEAC / angular.CQRS

AngularJS module to provide CQRS integration on clientside
18 stars 3 forks source link

Ability to pass in error callback in "store.for(...).do(...)" #3

Closed xeronimus closed 10 years ago

xeronimus commented 10 years ago

As a consumer, I want to be able to pass in an error callback in order to handle http errors on viewModel queries:

 var storeInstance = StoreService.createForController($scope);
 storeInstance
    .for('myViewModel')
    .do(function (result) {
      // do something with the result
    }, function (data, status) {
     // handle http error
    });