Merge pull request #439 from taigaio/fix-check-route-params
fix the location method that check the current route paramsstable
commit
e6cbd52b76
|
@ -30,7 +30,9 @@ locationFactory = ($location, $route, $rootscope) ->
|
|||
return $location
|
||||
|
||||
$location.isInCurrentRouteParams = (name, value) ->
|
||||
return $route.current.params[name] == value
|
||||
params = _.merge($route.current.params, $location.search())
|
||||
|
||||
return params[name] == value
|
||||
|
||||
return $location
|
||||
|
||||
|
|
Loading…
Reference in New Issue