0
在angular4中,类型订阅中不存在捕获。类型订阅中不存在捕获
this.route.parent.params.subscribe(
params => {
const etc = this.service.getEtc()
Observable.blah.subscribe(results => {
this.abc = false
})
.catch(err => {
this.service.showErrorAlert('can not find');
})
});
方法的返回订阅()不是一个可观察......这是一个订阅对象,与像处置方法() –
@JoaozitoPolo只是想知道如果你有任何想法如何消除这个错误。 –
你使用rxjs吗?尝试导入catch运算符'import'rxjs/add/operator/catch';' – mchan