angular / router

The Angular 1 Component Router
MIT License
665 stars 135 forks source link

fix(navigation) avoid navigating twice #340

Closed alfonso-presa closed 8 years ago

alfonso-presa commented 9 years ago

the ngLink directive was invoking the $$rootRouter.navigate and also does the $watch in the routerFactory, so when you click a link both where being triggered.

I Solved it by adding a check in the navigate method and also providing a force parameter for the renavigate feature.

Review on Reviewable

alfonso-presa commented 9 years ago

example tests are failing on CI but should be solved by applying #337