mirror of
https://github.com/nasa/openmct.git
synced 2025-05-29 13:44:21 +00:00
[Addressability] Get IDs from URL
Add a route parameter to Browse mode which includes domain object identifiers. WTD-1149.
This commit is contained in:
parent
f6eb9904ff
commit
f24db1561e
@ -2,7 +2,7 @@
|
|||||||
"extensions": {
|
"extensions": {
|
||||||
"routes": [
|
"routes": [
|
||||||
{
|
{
|
||||||
"when": "/browse",
|
"when": "/browse/:id*",
|
||||||
"templateUrl": "templates/browse.html"
|
"templateUrl": "templates/browse.html"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -14,7 +14,7 @@
|
|||||||
{
|
{
|
||||||
"key": "BrowseController",
|
"key": "BrowseController",
|
||||||
"implementation": "BrowseController.js",
|
"implementation": "BrowseController.js",
|
||||||
"depends": [ "$scope", "objectService", "navigationService" ]
|
"depends": [ "$scope", "$routeParams", "objectService", "navigationService" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "CreateMenuController",
|
"key": "CreateMenuController",
|
||||||
@ -150,4 +150,4 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ define(
|
|||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
function BrowseController($scope, objectService, navigationService) {
|
function BrowseController($scope, $routeParams, objectService, navigationService) {
|
||||||
// Callback for updating the in-scope reference to the object
|
// Callback for updating the in-scope reference to the object
|
||||||
// that is currently navigated-to.
|
// that is currently navigated-to.
|
||||||
function setNavigation(domainObject) {
|
function setNavigation(domainObject) {
|
||||||
@ -91,4 +91,4 @@ define(
|
|||||||
|
|
||||||
return BrowseController;
|
return BrowseController;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user