angular-meteor-promiser
Turns Meteor subscribe, call, apply callbacks into promises
Install
npm install angular-meteor-promiser
angular;
$promiser
{ // $promiser.subscribe // $promiser.call // $promiser.apply // $promiser.any}
subscribe
Same arguments as Meteor.subscribe
but without callback.
resolve()
receives a handle that provides stop()
and ready()
methods.
call
Same arguments as Meteor.call
.
apply
Same arguments as Meteor.apply
.
any (sync and async)
{ if !bar throw 'Bar, we need you!'; return bar;} $promiser // 'sync' ; $promiser // 'async' ;