In my production environment the Angular app is served under the same domain as the API therefore the base url is in the form of e.g. '/api'.
The problem is when I develop I'm using grunt serve (grunt-contrib-connect) as my development server and I would like to specify a base url for the API Endpoint when I start it e.g. grunt serve --endpoint="http://localhost/api"
I know I can get this value using grunt.option however, I don't know how to pass this along to my Angular App.
Note: this is not your typical production/development config split. I want the endpoint to be specified every time the development server is started.
Any solutions? The simpler the better!