Click here to Skip to main content
15,882,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to bind response from node api to UI when we are using raw html? Can you share some links working with binding in Nodejs while plain HTML is used?

We are creating NODE JS application without using jade or ejs template engine so its plain HTML while rendering code. i.e. we will comment this setup below:

// view engine setup
//app.set('views', path.join(__dirname, 'views'));
//app.set('view engine', 'jade');

And in routes we are using res.sendfile to show html files. I am having api which will give data Now my doubt is i donno how to bind those data to HTML. I would like to get some good idea and links from you fellow programmers. Thanks for any help you can provide me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900