Closed masonlr closed 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.
SimulationComponent
Solution is to create an initialiseState() method and call it via ngOnChanges().
initialiseState()
ngOnChanges()
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 viangOnChanges()
.