angular-gs-apibase

A service to set the base for your api services


Keywords
api, base, angular
License
MIT
Install
bower install angular-gs-apibase

Documentation

angular-gs-apibase

Build Status

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'
});