import {Component, Input, OnInit, OnDestroy, ViewChild} from '@angular/core';
-import {Router} from '@angular/router';
+import {Router,ActivatedRoute, ParamMap} from '@angular/router';
import {of, Observable, Subscription} from 'rxjs';
import {tap, take, map} from 'rxjs/operators';
import {IdlObject, IdlService} from '@eg/core/idl.service';
constructor(
private router: Router,
+ private route: ActivatedRoute,
private evt: EventService,
private idl: IdlService,
private net: NetService,
this.load(false).then(_ => {
this.initDone = true;
this.liService.clearLiCache();
- this.router.navigate([]);
+ this.router.navigate([], {
+ relativeTo: this.route,
+ queryParamsHandling: 'merge'
+ });
});
} else {