Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 6: why module-override? #31

Open
amacleay opened this issue Aug 31, 2017 · 0 comments
Open

Chapter 6: why module-override? #31

amacleay opened this issue Aug 31, 2017 · 0 comments

Comments

@amacleay
Copy link

Hello! I am enjoying your book, thank you.

In Chapter 6, I am unclear how method-override is being used in server.js.

I thought perhaps a naive attempt to use $http.delete wouldn't work without it, but that doesn't appear to be the case: I made a test branch at https://github.com/amacleay/angularjs-up-and-running/tree/delete-example with such a naive implementation and it seems to work fine:

  • Clone to a new directory (cd $(mktemp -d);git clone https://github.com/amacleay/angularjs-up-and-running; cd angularjs-up-and-running)
  • Checkout the new branch, install, and start (git checkout delete-example; npm i; npm start)
  • Navigate to the example and verify that it works

I'm just curious what method-override does in this example. Hopefully it's not explained in the next chapter or I'll feel foolish!

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

No branches or pull requests

1 participant