fix the location method that check the current route params

stable
Juanfran 2015-04-15 15:26:00 +02:00 committed by David Barragán Merino
parent c79e7354e6
commit 70fdce90fb
1 changed files with 3 additions and 1 deletions

View File

@ -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