angularjs - How to bootstrap an Express / Angular app with a user object? -
during initial request, how can load user object (or object) on express back-end , populate angular app loaded? have application sending jwt token to. have sucessfully validated session , loaded initial data (user object, etc.) application needs. cannot figure out how load angular app.
embed in page @ server side, perhaps using templating engine.
see mean.js framework, something similar that. https://github.com/meanjs/mean/blob/master/app/views/layout.server.view.html
Comments
Post a Comment