Update mithril.module.md
This commit is contained in:
parent
91607387b1
commit
bb4f92d500
1 changed files with 2 additions and 2 deletions
|
|
@ -100,7 +100,7 @@ m.module(document, module1);
|
|||
|
||||
var module2 = {};
|
||||
module2.controller = function() {};
|
||||
module1.view = function() {};
|
||||
module2.view = function() {};
|
||||
|
||||
m.module(document, module2); // logs "unloading module 1"
|
||||
```
|
||||
|
|
@ -161,4 +161,4 @@ where:
|
|||
|
||||
- **returns Object controllerInstance**
|
||||
|
||||
An instance of the controller constructor
|
||||
An instance of the controller constructor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue