mvcx
Version:
A web based MVC framework for Node JS.
23 lines (19 loc) • 372 B
JavaScript
module.exports = function(
q
){
var self = this;
this.q = q.value;
this.get = function(model){
return self.mvcx.view('Index', {
title: 'My Pets',
pets: [
{ petId: 1, name: 'Good Doge' },
{ petId: 2, name: 'Bad Cate' }
]
});
};
};
module.exports.$type = 'mvc'
module.exports.$inject = [
'q'
];