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

Commit 898be1b

Browse files
authored
listen for location hash update
1 parent feaf93f commit 898be1b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/listings/listings.controller.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ import { loadUser } from '../services/userv3.service.js'
2424
activate()
2525

2626
function activate() {
27-
27+
// listen for location hash update
28+
$scope.$on('$locationChangeSuccess', function(event) {
29+
if($scope.challengeFilter != null) {
30+
$scope.challengeFilter.forceUpdate()
31+
}
32+
})
2833
$scope.myChallenges = []
2934
$scope.reactProps = {
3035
config: CONSTANTS,

0 commit comments

Comments
 (0)