Wednesday, 10 May 2017

How to render a view to a html-anchor with express.js?

app.get("/abc", (req, res) =>
{
    if(true)
        res.render("aaa");
    else
        res.render("bbb");
});

If the rendered page/view aaa contains <div id='bottom'></div> and if I wanted to redirect to that div as a html anchor, how could I do it?



via Robert C. Holland

No comments:

Post a Comment