fix($resource) Route constructor, updated RegExp#1402
Conversation
Update RegExp to allow urlParams with out leading slash (/).
- Will allow reoucese to be loaded from a relative path
Example:
var R = $resource(':path');
R.get({ path : 'data.json' });
Example usage:
Load resources in applications not using webserver, ie local webapp in on a tablet.
|
Thanks for your contribution! In order for us to be able to accept it, we ask you to sign our CLA (contributor's license agreement). CLA is important for us to be able to avoid legal troubles down the road. For individuals (a simple click-through form): For corporations (print, sign and scan+email, fax or mail): |
|
@mhevery Don't know how you get the registration, but it's filled out and posted. The individual one. |
|
this changed caused regressions. Resources with template: generate urls: should be: |
|
Updated the regexp (simplified it) and added test for your example. |
|
MERGED, thanks |
This reverts commit 06ed8ef. The reverted commit causes regressions. See comments in the PR: angular#1402 (comment)


Update RegExp to allow urlParams with out leading slash (/).
Example:
var R = $resource(':path');
R.get({ path : 'data.json' });
Example usage:
Load resources in applications not using webserver, ie local webapp in on a tablet.