From f24db1561e5eec53862fc5b24b0e2fb8afd1aa1e Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 16 Jun 2015 13:00:03 -0700 Subject: [PATCH] [Addressability] Get IDs from URL Add a route parameter to Browse mode which includes domain object identifiers. WTD-1149. --- platform/commonUI/browse/bundle.json | 6 +++--- platform/commonUI/browse/src/BrowseController.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/commonUI/browse/bundle.json b/platform/commonUI/browse/bundle.json index dcf1ba9a38..014f09effa 100644 --- a/platform/commonUI/browse/bundle.json +++ b/platform/commonUI/browse/bundle.json @@ -2,7 +2,7 @@ "extensions": { "routes": [ { - "when": "/browse", + "when": "/browse/:id*", "templateUrl": "templates/browse.html" }, { @@ -14,7 +14,7 @@ { "key": "BrowseController", "implementation": "BrowseController.js", - "depends": [ "$scope", "objectService", "navigationService" ] + "depends": [ "$scope", "$routeParams", "objectService", "navigationService" ] }, { "key": "CreateMenuController", @@ -150,4 +150,4 @@ } ] } -} \ No newline at end of file +} diff --git a/platform/commonUI/browse/src/BrowseController.js b/platform/commonUI/browse/src/BrowseController.js index e2c2484e1b..291986f7ba 100644 --- a/platform/commonUI/browse/src/BrowseController.js +++ b/platform/commonUI/browse/src/BrowseController.js @@ -40,7 +40,7 @@ define( * * @constructor */ - function BrowseController($scope, objectService, navigationService) { + function BrowseController($scope, $routeParams, objectService, navigationService) { // Callback for updating the in-scope reference to the object // that is currently navigated-to. function setNavigation(domainObject) { @@ -91,4 +91,4 @@ define( return BrowseController; } -); \ No newline at end of file +);