Universal JavaScript

Diagram: on the server, Node.js executes Angular, which renders HTML that is flushed to the client, where Angular binds to it and calls a REST API.
In a universal JavaScript approach utilizing shared rendering, Node.js executes a framework (in this case Angular), which then renders an initial application state in HTML. This initial state is passed to the client side, which also loads the framework to provide further client-side rendering that is necessary, particularly to “rehydrate” or update the server-side render.

Blog