我正在尝试使用//declare
private ngUnsubscribe: Subject<any> = new Subject<any>();
//add takeUntill where subscribing to observables
this.myService.serviceFunction()
.pipe(takeUntil(this.ngUnsubscribe))
.subscribe(
res => {
// use res
},
err => {}
);
//unsubscribe all
ngOnDestroy() {
this.ngUnsubscribe.next();
this.ngUnsubscribe.complete();
}
的{{1}}标志从后堆栈开始一项活动
但它不起作用,其行为类似于FLAG_ACTIVITY_REORDER_TO_FRONT
我的代码是这样的:
Shared Elements