alan-turing-institute / simulate-frontend

Simulate frontend application.
http://simulate.readthedocs.io
0 stars 1 forks source link

fix: Component refresh issue with reloading same route #131

Closed masonlr closed 5 years ago

masonlr commented 5 years ago

Search bar was navigating to identical route but with new parameter, i.e. from

http://localhost:8080/simulations/8c025ea1-bf8d-456f-abf6-f54dcccbdd3d

to

http://localhost:8080/simulations/63d099b3-2551-4412-913e-bef9ac7e4c95

SimulationComponent was not being refreshed.

Solution is to create an initialiseState() method and call it via ngOnChanges().