I am looking for the angular 2 equivalent of react-dom/server.renderToString
import { renderToString } from 'react-dom/server';
// Render the component to a string
const html = renderToString(
<App />
);
What is the simplest code example to transform a directive/component into HTML using NodeJs?
I guess it should be possible with one of these packages:
@angular/compiler - v2.0.0-rc.2
@angular/platform-server - v2.0.0-rc.2