Angular 如何将可观测数据从参数传递到管道rxjs
我想写一个这样的函数:Angular 如何将可观测数据从参数传递到管道rxjs,angular,typescript,rxjs,Angular,Typescript,Rxjs,我想写一个这样的函数: function abc(arg1, arg2, arg3) { pipe(arg1, arg2, arg3...); // or someSubject.pipe(arg1, arg2, arg3..) } 但是我总是在构建代码时出错。 我怎样才能在typescript中完成它?你什么都不能管。您需要来自参数的流。 例如: of(arg1, arg2, arg3).pipe(....) 或 如果您需要一个带三个参数的流值。什么错误,您到底想做什么? of(
function abc(arg1, arg2, arg3) {
pipe(arg1, arg2, arg3...); // or someSubject.pipe(arg1, arg2, arg3..)
}
但是我总是在构建代码时出错。
我怎样才能在typescript中完成它?你什么都不能管。您需要来自参数的流。 例如:
of(arg1, arg2, arg3).pipe(....)
或
如果您需要一个带三个参数的流值。什么错误,您到底想做什么?
of([arg1, arg2, arg3]).pipe(....)