Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
/angular.jsPublic archive

fix($resource) Route constructor, updated RegExp#1402

Conversation

fredrikbonander
Copy link
Contributor

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.

Update RegExp to allow urlParams with out leading slash (/).- Will allow reoucese to be loaded from a relative pathExample: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.
@ghostghost assignedmheveryJan 18, 2013
@mhevery
Copy link
Contributor

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):
http://code.google.com/legal/individual-cla-v1.0.html

For corporations (print, sign and scan+email, fax or mail):
http://code.google.com/legal/corporate-cla-v1.0.html

@fredrikbonander
Copy link
ContributorAuthor

@mhevery Don't know how you get the registration, but it's filled out and posted. The individual one.

@IgorMinar
Copy link
Contributor

this changed caused regressions.

Resources with template:

/api/myapp/:myresource?from=:from&to=:to&histlen=:histlen

generate urls:

/api/myapp/pear+apple?from=:from&to=:to&histlen=:histlen?from=2012-04-01&histlen=3&to=2012-04-29

should be:

/api/myapp/pear+apple?from=2012-04-01&to=2012-04-29&histlen=3

@fredrikbonander
Copy link
ContributorAuthor

Updated the regexp (simplified it) and added test for your example.

@lrlopezlrlopez mentioned this pull requestJan 25, 2013
4 tasks
@mhevery
Copy link
Contributor

MERGED, thanks

groner pushed a commit to groner/angular.js that referenced this pull requestNov 12, 2013
This reverts commit06ed8ef.The reverted commit causes regressions. See comments in the PR:angular#1402 (comment)
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees

@mheverymhevery

Labels
None yet
Projects
None yet
Milestone
Waiting on CLA
Development

Successfully merging this pull request may close these issues.

3 participants
@fredrikbonander@mhevery@IgorMinar

[8]ページ先頭

©2009-2025 Movatter.jp