angular-gs-apibase
A service to set the base for your api services
Installing
bower install angular-gs-apibase
Using
Include the package in your application:
angular.module('app', ['gs.apibase']);
.config(function (ApiBaseProvider) {
ApiBaseProvider.setUrl('http://gabesgreatapi.com');
ApiBaseProvider.setPrefix('api/v1');
});
.service('Something', function (ApiBase) {
ApiBase; // => 'http://gabesgreatapi.com/api/v1'
});