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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -