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
|
|
@ -28,7 +28,7 @@ var user = {
|
|||
this.name = m.prop(name);
|
||||
},
|
||||
controller: function() {
|
||||
this.user = new user.model("John Doe");
|
||||
return {user: new user.model("John Doe")};
|
||||
},
|
||||
view: function(controller) {
|
||||
m.render("body", [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue