You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I've encountered several use cases where I need to parse route templates (eg. /items/:category/:sortBy/:categoryId) using info from $routeParams; a prominent use case is when implementing a custom cache to store backend response plus some corresponding additional information, it will be an array with the parsed route template acting as the key/index of the array.
I've encountered several use cases where I need to parse route templates (eg.
/items/:category/:sortBy/:categoryId
) using info from$routeParams
; a prominent use case is when implementing a custom cache to store backend response plus some corresponding additional information, it will be an array with the parsed route template acting as the key/index of the array.For the time being I'm doing the parsing by copy-pasting related codes (https://github.com/angular/angular.js/blob/master/src/ngResource/resource.js#L340) into my own projects, but that is overly redundant; if an official API can be created, it would be really great.
The text was updated successfully, but these errors were encountered: