Monthly Archives: March 2015

Share Constant Values between AngularJS and NodeJS

FacebookTwitterGoogle+PinterestWhatsAppStumbleUponShare

Suppose you have a client-side configuration as an Angular module like this: angular.module(‘config’, []) .constant(‘configuration’, { API_END_POINT: ‘localhost:3000′, APP_END_POINT : “localhost:9000″, “ORIGIN_HOST” : “localhost:3000″, ‘ENVIRONMENT’ : ‘dev’ }); You’d like to pull these constants into your nodejs environment to keep

FacebookTwitterGoogle+PinterestWhatsAppStumbleUponShare
Posted in AngularJS, NodeJS