I am fairly new to nodejs, just been playing around with it for a while.
Now I would like to use angularjs $compile on server-side. In the end I would like to have an API which receives html and json and compiles it together using angulars syntax.
To go in a little more detail, this is what it looks like in angular: plunkr
$compile(element.contents())(scope);
As you can see the angular function $compile is used to fill a template from a textarea. I would like to use this $compile function on server-side as a webservice.
tl;dr;: I would like to use angularjs as a templating engine for express/nodejs on server-side.
I am having troubles integrating angular. Do you think this is a liable approach at all?