[Addressability] Expose current view in query param

Expose the currently selected view as a query string parameter,
WTD-1149.
This commit is contained in:
Victor Woeltjen
2015-06-16 15:09:42 -07:00
parent fec6f06849
commit d559dae1e2
2 changed files with 8 additions and 1 deletions

View File

@ -47,7 +47,14 @@ define(
}
}
function updateQueryParam(viewKey) {
if (viewKey) {
$location.search('view', viewKey);
}
}
$scope.$watch('domainObject', setViewForDomainObject);
$scope.$watch('representation.selected.key', updateQueryParam);
}
return BrowseObjectController;