Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

send variable data from node js to front end javascript

<script>
   window.app = <%- JSON.stringify(data) %>
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #send #variable #data #node #js #front #javascript
ADD COMMENT
Topic
Name
8+7 =