nvbjmw
Last Updated: February 25, 2016
·
3.322K
· pzgz
5894706ab8c4aa40257d022e28129f66

Global scope variable assigning and access for coffeescript in rails

Declare following in coffeescrip file

root = exports ? this

Then, use following to access the variables, they are global:

root.variable = ...
Say Thanks
Respond