Finally got angular to work with express partial routes
This commit is contained in:
8
controllers/home.js
Normal file
8
controllers/home.js
Normal 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);
|
||||
};
|
Reference in New Issue
Block a user