ordered list in docs
This commit is contained in:
parent
8fadeadb8f
commit
0d819f082b
2 changed files with 2 additions and 0 deletions
|
|
@ -130,6 +130,7 @@ m.module(document.body, MyApp)
|
|||
There are a few caveats to using modules as components:
|
||||
|
||||
1 - component views must return a virtual element. Returning an array, a string, a number, boolean, falsy value, etc will result in an error. This limitation exists in order to support the correctness of unloading semantics component identity.
|
||||
|
||||
2 - components cannot change `m.redraw.strategy` from the controller constructor (but they can from event handlers).
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -285,6 +285,7 @@ m.module(document.body, MyApp)
|
|||
There are a few caveats to using modules as components:
|
||||
|
||||
1 - component views must return a virtual element. Returning an array, a string, a number, boolean, falsy value, etc will result in an error. This limitation exists in order to support the correctness of unloading semantics component identity.
|
||||
|
||||
2 - components cannot change `m.redraw.strategy` from the controller constructor (but they can from event handlers).
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue