Add a Detail Page
routes.js
or search.routes.js
:
search-detail.html
.
search.controller.js
or main.js
, contains the line, $scope.params = $stateParams;
. Also, ensure that $stateParams
is injected into your controller.
search:query
tag in your search-detail.html
page that contains a nested filter with the ID parameter passed in the URL as the filter:
mysite.com/search/id-of-the-document
, it will load that page with the ID passed into the URL.