Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 如何将可观测数据从参数传递到管道rxjs_Angular_Typescript_Rxjs - Fatal编程技术网

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(....)