sails.js - access controller object from a javascript file in sails js -


i new sails js. passing object controller view in sails js. can access object ejs (embedded javascript) file. need access object javascript file. should need use object in hidden field or there better way object javascript file.

you have send data in hidden field. not possible access controller variables front-end.

also, use sockets.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -