MissionSupport / MissionSupportDemo

MIT License
0 stars 0 forks source link

On Same url change add support for parameter changing #53

Open rourke750 opened 5 years ago

rourke750 commented 5 years ago

Currently angular doesnt reinitialize page if the url parameter is update to the same url. Need to subscribe to router change and then reinitialize variables.

https://stackoverflow.com/questions/49159416/url-change-not-firing-in-angular

this.route.params.subscribe((params) => {
  this.orgId = params['id'];
  this.ngOnInit();
});