This route configuration example showcases how to extract parameters from a URL:
URL: http://server.com/index.html#/Chapter/1/Section/2?search=moby
Route: /Chapter/:chapterId/Section/:sectionId
Using this setup, we can obtain the following object:
{chapterId:'1', sectionId:'2', search:'moby'}
But is there a way to fetch multiple objects using $routeParams
like:
[
{chapterId:'1', sectionId:'2', search:'moby'},
{chapterId:'1', sectionId:'5', search:'mobydick'}
]
If so, what would be the route configuration required to make it happen?