Skip to content

Fix for angular resource error 404 on save#1941

Closed
opsxcq wants to merge 1 commit intoangular-fullstack:masterfrom
opsxcq:master
Closed

Fix for angular resource error 404 on save#1941
opsxcq wants to merge 1 commit intoangular-fullstack:masterfrom
opsxcq:master

Conversation

@opsxcq
Copy link
Copy Markdown

@opsxcq opsxcq commented May 31, 2016

404 Error on Angularjs $resource when using resource.$save(). Angularjs default behaviour is to use post to save/update data on server. This route wasn't generated.

@Awk34
Copy link
Copy Markdown
Collaborator

Awk34 commented May 31, 2016

I don't think we want this. PUT is an idempodent operation, while POST is not. I suggest following the Angular doc's Creating a custom 'PUT' request instead.

Also, for future PRs, please follow the Contributing Guidelines.

@Awk34 Awk34 closed this May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants