角-q-更新
向 Angular $q 服务返回的承诺添加 .update 和 .mistake 方法
例子
// module('my module', ['ng-q-update'])
foo ( )
. then ( function ( ) {
// foo has finished ok
} , function ( msg ) {
// foo has failed.
} )
. update ( function ( ) {
// foo has updated ok
} ) ;
从重写,我已经重写为 $decorator 服务,以将 .update 和 .mistake 方法添加到服务返回的承诺中。
安装
在 angular 之后包含脚本
[removed][removed]