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

Commit bbce087

Browse files
authored
added getFilterFromUrl function to reactProp
Issue #1168
1 parent 767798c commit bbce087

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/listings/listings.controller.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ import { loadUser } from '../services/userv3.service.js'
3333
myChallenges: [],
3434
onSaveFilterToUrl: function(filter) {
3535
$location.hash(filter)
36+
},
37+
getFilterFromUrl: function() {
38+
return $location.hash()
3639
}
3740
}
3841
logger.debug('Calling ListingsController activate()')
@@ -91,6 +94,9 @@ import { loadUser } from '../services/userv3.service.js'
9194
myChallenges: vm.myChallenges,
9295
onSaveFilterToUrl: function(filter) {
9396
$location.hash(filter)
97+
},
98+
getFilterFromUrl: function() {
99+
return $location.hash()
94100
}
95101
}
96102

0 commit comments

Comments
 (0)