Questions tagged «rxjs-pipe»

5
什么是Angular中的pipe()函数
管道是用于转换模板中数据(格式)的过滤器。 我遇到了pipe()如下功能。pipe()在这种情况下,此功能究竟意味着什么? return this.http.get<Hero>(url) .pipe( tap(_ => this.log(`fetched hero id=${id}`)), catchError(this.handleError<Hero>(`getHero id=${id}`)) );
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.