Skip to content

Instantly share code, notes, and snippets.

@theSymbeint
theSymbeint / Angular url mapping
Created January 1, 2015 15:34
This is my scheme for dealing with development and production urls in angular.
angular.module('appEnv',[])
.constant('ENV',{
STATE: "dev",
APPENV: {
dev: {
EP1 : "http://localhost:3000/api/v1/ep1/:id",
EP2 : "http://localhost:3000/api/v1/ep2/"
},
prod: {
EP1 : "http://api.porduction.com/api/ep1/:id",