Issue: Whenever I click into one link it selects both. But it shows individual links correctly.
I thing when ever I click on link, It didn't refresh the whole route.
My Code: 1. Angular route:
{ path: 'gantt/:id', component: GanttWorkItemsComponent, data: { permission: 'Pages.WorkItems' }},
{ path: 'gantt', component: GanttWorkItemsComponent, data: { permission: 'Pages.WorkItems' } },
2.Component:
import { ActivatedRoute } from '@angular/router';
export class Gcomponent extens appComponent implements OnInit{
constructor(
injector: Injector,
private _http: Http,
private _workItemsServiceProxy: WorkItemsServiceProxy,
private params: ActivatedRoute) {
super(injector);
var paramId = params.snapshot.params["id"];
if (paramId) {
this.initiativeFilter = paramId;
this.nameFilter = 'strategy.id=' + this.initiativeFilter;
}
}
ngOnit(){}
}