javascript - How can I dynamically change the meta data of a MEAN.JS application before it loads the client? -
using mean.js framework, trying dynamically change page's meta data modifying app.locals variables in app/config/express.js file. have experience trying this?
if it's inner page being requested such /t/elonmusk, want include path (elonmusk) in meta title , have different title if requesting home page. tried using if statement on req.url in app.use function not work because sends home page request ('/') after requesting '/t/elonmusk'. can't find way see original url being requested server.
is there better way modify meta data server side?
edit: i'm using url rerouting remove hashbang actual full url indeed being sent server.
since part of url after # in case /t/elonmusk not send server, there's no way server-side, , can change title on client once page loads.