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

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -