Have an project that uses Ionic Framework and also $http services. When I'm in development environment need to use the development url api and in production need to use the production url api. I isolated already the base Url, someting like :
.factory('EventsService', function ($http, $q) {
var baseUrl = 'http://development.api.example.com/'; //development api
.....
Is it possible to store it in an external file somewhere ( something like event.dev.settings.xml) and have also a similar one event.prod.settings.xml and the build process to use the correct one depending on what kind of build I'm making?
Or is another way ?