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 - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -