[backport] fix the location method that check the current route params
parent
0893d6107f
commit
ca7643919e
|
@ -30,7 +30,9 @@ locationFactory = ($location, $route, $rootscope) ->
|
||||||
return $location
|
return $location
|
||||||
|
|
||||||
$location.isInCurrentRouteParams = (name, value) ->
|
$location.isInCurrentRouteParams = (name, value) ->
|
||||||
return $route.current.params[name] == value
|
params = _.merge($route.current.params, $location.search())
|
||||||
|
|
||||||
|
return params[name] == value
|
||||||
|
|
||||||
return $location
|
return $location
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue