changes in the docs: rename modules to components, change idiomatic controller and view usage

This commit is contained in:
Leo Horie 2015-04-06 22:41:38 -04:00
parent 0addce57ba
commit d5619d412e
19 changed files with 395 additions and 692 deletions

View file

@ -34,7 +34,7 @@ The example below shows a route that takes a `userID` parameter.
//a sample module
var dashboard = {
controller: function() {
this.id = m.route.param("userID");
return {id: m.route.param("userID")};
},
view: function(controller) {
return m("div", controller.id);