Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Publicize route template parsing API in ngResource #3288

Closed
@gsklee

Description

@gsklee

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions