Suppose I have created global.js
where all the global variables and functions are defined in express js. How to access them all over the applications including all routes and view also. Also how to define them global.js
? I want to keep global.js
page along with app.js
. I don't want to define global variables and functions into app.js
page. As I am newbie in nodejs I want a proper guide to define and access them all over.
via Dipankar Naskar
No comments:
Post a Comment