How can I import a javascript library in CoffeeScript? -



How can I import a javascript library in CoffeeScript? -

when loading page include javascript library used create graphs google api. handling coffeescript in front end end. according tutorial initiating library like: data = new google.visualization.datatable();.

when parsing produced js code coffeescript jshint getting error google not defined. how can show parser library loaded , object exists?

data = new google.visualization.datatable(); problem: 'google' not defined.

i have tried phone call window object

data = new window.google.visualization.datatable();

and stopped complaining.

javascript coffeescript jshint

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -