Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Nav update #1181

Merged
merged 10 commits into from
Apr 24, 2017
Prev Previous commit
Next Next commit
added locationChange watcher
Force the update of the react component on url change
  • Loading branch information
chq-matteo authored Apr 8, 2017
commit 03258ee3010d7405ca8fe9a20a03fd01a21fda73
3 changes: 3 additions & 0 deletions app/listings/listings.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ import angular from 'angular'
if (usersnapWidget && usersnapWidget[0]) usersnapWidget[0].remove()
}
})
$rootScope.$on('$locationChangeSuccess', function(event, toState, fromState) {
$rootScope.challengeFilter.forceUpdate()
})
}])

function routes($stateProvider) {
Expand Down