node.js - Re-render a page without old data -
in application if call res.render so
res.render( 'index', {list:output1}) it display correctly first page. if example first page ouputs this
1 2 3 and press button , load other page calls res.render should this
a b the result have first output, so
a b 3 is there way 'refresh' no old data included?
thank you
stupid mistake on part....
i realized output variable global. declaring in function (making new, empty output each time) didnt have problem
Comments
Post a Comment