Closed matthewlmcclure closed 8 years ago
@matthewlmcclure Thanks for the suggestion, although I actually want to keep the front end ignorant of localhost:3000
. The main reason is that the production URL will be different. In development, I like to proxy all /api
requests to localhost:3000
in a development-only config file.
The free Getting Started with Angular and Rails, in the section named Step 2: Add an HTTP request to Angular, contains the following code:
I believe it should be: