Angular Material 文档应用程序中包含以下代码段:
// Combine params from all of the path into a single object.
this.params = combineLatest(
this._route.pathFromRoot.map(route => route.params),
Object.assign);
TSLint在使用combineLatest
时会给出以下提示:
@deprecated — resultSelector不再受支持,请改用管道(pipe)到map
应该如何解决这个问题呢?
如果您了解所使用的技术,一个简单的例子并加以阐述将非常棒。
这里有一个代码链接: