How would I convert this curl command into an AngularJS $http request?
<p>I'm currently working on a project with a Rails backend and I need some help with translating this curl command please.  We're using devise to allow a user to sign in but I'm not sure how to implement this into a AngularJS $http request.</p>

<p>curl -v -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST <a href="http://localhost:3000/users" rel="nofollow">http://localhost:3000/users</a> -d </p>

<p>"{\"user\":{\"email\":\"user@example.com\",\"password\":\"password\"}}”</p>