[Addressability] Get IDs from URL

Add a route parameter to Browse mode which includes domain
object identifiers. WTD-1149.
This commit is contained in:
Victor Woeltjen 2015-06-16 13:00:03 -07:00
parent f6eb9904ff
commit f24db1561e
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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;
}
);
);