Hi,
I need to be able to pass a URL pathName to a function and have it return the parameters for that path.
var myPath = '/locations/998/search/recipes';
var paramsObject = someAngularFunction(myPath);
console.log('Params for this path are:', paramsObject);
=> { storeId: '998', category: 'recipes' }
Basically, just as the $routeProvider can parse the URL and pull out the ":storeId" and ":category" parameters, I need a method which can pull these out.
Much appreciation,
Cody