changes in the docs: rename modules to components, change idiomatic controller and view usage
This commit is contained in:
parent
0addce57ba
commit
d5619d412e
19 changed files with 395 additions and 692 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue