Finally got angular to work with express partial routes

This commit is contained in:
Sahat Yalkabov
2013-11-14 02:29:55 -05:00
parent 2410aaa74a
commit d18ae61019
9 changed files with 164 additions and 216 deletions

8
controllers/home.js Normal file
View File

@@ -0,0 +1,8 @@
exports.index = function(req, res){
res.render('index');
};
exports.partials = function (req, res) {
var name = req.params.name;
res.render('partials/' + name);
};