【发布时间】:2017-06-09 07:06:10
【问题描述】:
这是我的删除函数中调用该服务的代码。订阅中的成功部分无法正常工作,因为 toastr 没有出现在新页面上。但它会出现在之前的页面上(导航到另一个页面会使其消失)。
this._meetupService.deleteMeetup(id).subscribe(
() => {this._router.navigate(['/meetups']),
this.toastr.success('Successfully Deleted!');},
error => this.errorMessage = <any>error);
【问题讨论】:
标签: angular navigation router toastr