Update module docs to receive controller as param in view

This commit is contained in:
Danilo Cabello 2014-03-19 08:27:55 -04:00
parent 537e78ac91
commit c5095707f6

View file

@ -27,7 +27,7 @@ var dashboardController = function() {
};
//view class
var dashboardView = function() {
var dashboardView = function(ctrl) {
return m("h1", ctrl.greeting);
};
@ -47,7 +47,7 @@ dashboard.controller = function() {
};
//view class
dashboard.view = function() {
dashboard.view = function(ctrl) {
return m("h1", ctrl.greeting);
};