Update mithril.component.md
This commit is contained in:
parent
a3cc70863c
commit
b70b4191b7
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ Components can be placed anywhere a regular element can. If you have components
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var App = {
|
var App = {
|
||||||
ctrl: function() {
|
controller: function() {
|
||||||
return {data: [1, 2, 3]}
|
return {data: [1, 2, 3]}
|
||||||
}
|
}
|
||||||
view: function(ctrl) {
|
view: function(ctrl) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue