Open amacleay opened 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:
$http.delete
cd $(mktemp -d);git clone https://github.com/amacleay/angularjs-up-and-running; cd angularjs-up-and-running
git checkout delete-example; npm i; npm start
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!
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:cd $(mktemp -d);git clone https://github.com/amacleay/angularjs-up-and-running; cd angularjs-up-and-running
)git checkout delete-example; npm i; npm start
)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!