1.5.0 • Published 4 years ago

@ndct/rxjs-operators v1.5.0

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
4 years ago

rxjs-operators

Rxjs 操作符扩展

npm CI code quality coverage

安装

npm install @ndct/rxjs-operators

操作符

start

在订阅时执行副作用

start<T>(callback: () => any): MonoTypeOperatorFunction<T>
  • 参数

    名称说明
    callback订阅时要调用的函数
  • 示例

    ajax(`https://api.github.com/users?per_page=5`)
      .pipe(
        start(() => (this.loading = true)),
        finalize(() => (this.loading = false))
      )
      .subscribe();
1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago