I'm trying to generate nodejs code, but it sends me the following error
module.exports = {
oninit : function (vnode) {
this.ctx = new timbreController(vnode.attrs);
},
view : function (vnode) {
return facturaView(this.ctx)
}
};
function timbreController(Params) {
var ctx = this;
var search = m.prop('');
console.log(location);
}
function facturaView(ctx){
console.log(ctx);
}
and it throws me the next error
"ReferenceError: timbreController is not defined at eval (eval at view etc .......