angular-component / router

Angular Component Router - A declarative router for Angular applications
MIT License
253 stars 16 forks source link

fix(router-component): enhance active route comparison #87

Closed meeroslav closed 3 years ago

meeroslav commented 3 years ago

Current implementation compares path and exact parameter causing two routes presented with ngIf/else logic to be treated the same and therefore canceling the rerender.

The new implementation compares inner routes as a whole. Additionally, the same comparison can be used for the addition/removal of routes. This pushes the responsibility of avoiding duplicate routes to the user.