my $http post body is too large and i need to make six different $http calls with different post content. i can't keep the body of the post messages (which is nothing but a valid json string) in my controller.js as it bloats it and becomes ugly. is there anything like require in javascript (or) import statements in python that i can use to put all constants in one module and import it into my app.js?
lib.js contents::::::::
var a = 'hello~'
module.exports = a
app.js::::::
a = require('lib')
app.controller('aController', function($scope){
console.log(a) //this must print hello~
}