diff --git a/docs/mithril.component.md b/docs/mithril.component.md index b6396d7a..4995a880 100644 --- a/docs/mithril.component.md +++ b/docs/mithril.component.md @@ -217,7 +217,7 @@ Components can be placed anywhere a regular element can. If you have components ```javascript var App = { - ctrl: function() { + controller: function() { return {data: [1, 2, 3]} } view: function(ctrl) {