shyamseshadri / angularjs-up-and-running

All the source code for the AngularJS Up & Running Book for O'Reilly
MIT License
464 stars 438 forks source link

Chapter 6: why module-override? #31

Open amacleay opened 7 years ago

amacleay commented 7 years ago

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:

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!