this._route.params.subscribe((params: Params) => {
this.iri = params['id'];
});
// subscribe to the router events to reload the content
this.navigationSubscription = this._router.events.subscribe((e: any) => {
// if it is a NavigationEnd event re-initalise the component
if (e instanceof NavigationEnd) {
this.getResource(this.iri);
}
});
Mybe we can get rid of this._router.events.subscribe and just use params service.
Mybe we can get rid of
this._router.events.subscribe
and just use params service.