How enable Angular Universal with a Java/Spring backend?

I have an app, where backend implements on Spring using Spring Boot and front-end side use Angular2. Can somebody help me and explain how to integrate Universal using Java becken. Or show me a good example how I can do that.

1 answer

  • answered 2017-10-11 15:08 Joanna

    how to integrate Universal using Java beckend?

    You cannot do that directly as universal needs a different server side technology -nodejs

    But you have a another (better) solution

    Spin off a separate nodejs app for the angular and universal then route all the API calls through the nodeJs to your Spring boot application. Now your spring boot application will be just a (micro)service which will only deal with the data, not the presentation (markup/style etc)