m.module -> m.mount: fix sample code in HTML files
This commit is contained in:
parent
dfa1da0652
commit
343ffc8d36
3 changed files with 11 additions and 11 deletions
|
|
@ -85,7 +85,7 @@ demo.view = function(ctrl) {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
m.module(document.body, demo)
|
m.mount(document.body, demo)
|
||||||
|
|
||||||
//submodule helper
|
//submodule helper
|
||||||
function submodule(module, args) {
|
function submodule(module, args) {
|
||||||
|
|
|
||||||
|
|
@ -66,5 +66,5 @@ todo.view = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
//initialize the application
|
//initialize the application
|
||||||
m.module(document, {controller: todo.controller, view: todo.view});
|
m.mount(document, {controller: todo.controller, view: todo.view});
|
||||||
</script>
|
</script>
|
||||||
2
mvc.html
2
mvc.html
|
|
@ -92,5 +92,5 @@ var ContactList = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m.module(document.body, ContactsWidget)
|
m.mount(document.body, ContactsWidget)
|
||||||
</script>
|
</script>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue