Closed DeBraid closed 8 years ago
Something like this (from Skaters where URL Copy is working)? Example Code
function updateUrl() { var absUrl = $location.absUrl(); var split_url = absUrl.split('#'); var url=''; for (key in $scope.active_filters) { if (url=='') { url = url + '?' + key + '=' + $scope.active_filters[key]; } else { url = url + '&' + key + '=' + $scope.active_filters[key]; } } url = split_url[0] + '#/skaters' + url; //console.log('updatedurl:', url); $scope.currentUrl = url; $scope.$broadcast('skater_filter_changed', $scope.currentUrl); return url; }
Very similar to #5 -- moving issues on Team Copy URL to there.
Something like this (from Skaters where URL Copy is working)? Example Code