Reputation: 308
I am trying to add server side rendering with separate root html files to my angular-meteor project. But, as server side rendering is not possible in angular and iron router/flow router which supports server side rendering does not play with angular but with blaze. Please help How can I can implement server side routing and angular ui-routing ?
Upvotes: 0
Views: 457
Reputation: 20768
Iron-Router does server and client side routing, however Flow-Router does not.
It is recommended to use Picker
for server-side rendering with Flow-Router, and it's basically like an Express router, so it should work fine wit Angular-Router
meteor add meteorhacks:picker
https://atmospherejs.com/meteorhacks/picker
https://github.com/meteorhacks/picker/
It supports middleware too.
Good luck
Upvotes: 0