1
I need to read an array on my jade page.
In my controller I am passing as follows:
res.render('graphics/index', {namesClient:JSON.stringify(namesClient)}
In jade I’m reading as follows:
var names= !{JSON.stringify(namesClient)};
However, I need to upload the information from namesClient[i].name
, how do I read?
It doesn’t make much sense to convert to String on Node to "disconnect" in Jade. You can switch directly to Jade as I described in my reply.
– Sergio
I am using in other places, so that I could read it was necessary to go out like this.
– Nodejs