Both Node.js and AngularJS seem capable of handling a lot of the same things, and I'm not sure how I should delegate tasks between the two frameworks.
For example, to render "localhost:3000/foo" in a browser you could either write this in express:
router.get("/foo", function (req, res, next) {
res.render("bar", callback);
});
or you could write a partial and include this block in config:
when("/foo", {
templateUrl: "views/partials/bar.html",
controller: "FooCtrl"
}).
In more general terms: what tasks should I delegate to AngularJS, and what should I leave to express?
Thanks in advance!
[http-server](https://www.npmjs.com/package/http-server)instead of express.