Permalink
Browse files

Made it possible to work with the queryParams property when using the…

… ng-link directive.
  • Loading branch information...
SamVerschueren committed Mar 15, 2015
1 parent 2bb06ef commit 7d06dcf2a60817a3c36a98bce25df29860ed7ed0
Showing with 2 additions and 2 deletions.
  1. +2 −2 dist/router.es5.js
View
@@ -30,7 +30,7 @@ function ngViewportDirective($animate, $compile, $controller, $templateRequest,
var rootRouter = $router;
$rootScope.$watch(function () {
- return $location.path();
+ return $location.url();
}, function (newUrl) {
rootRouter.navigate(newUrl);
});
@@ -39,7 +39,7 @@ function ngViewportDirective($animate, $compile, $controller, $templateRequest,
rootRouter.navigate = function (url) {
return nav.call(this, url).then(function (newUrl) {
if (newUrl) {
- $location.path(newUrl);
+ $location.url(newUrl);
}
});
}

0 comments on commit 7d06dcf

Please sign in to comment.