2

I have a Node.JS Express application using Jade. I know how to send data from the backed to the front end using data.render({}). However, I cannot seem to give my jquery file js/script.js to get access to it. How can I pass in data to a front end js file?

0

1 Answer 1

1

Here is the answer

script(type='text/javascript')  
var frontEndData = !{JSON.stringify(backEndData)}
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.