commit
e45b6d28d2
1 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ view channel model =
|
|||
Rather than refering directly to a top-level `actionChannel` as we did in
|
||||
example 1, we give the channel as an argument so that each counter can be
|
||||
sending messages along different channels. This will let us augment a basic
|
||||
`Counter.Action` with extra information so that we know which counter is needs
|
||||
`Counter.Action` with extra information so that we know which counter needs
|
||||
to be updated.
|
||||
|
||||
Creating modular code is all about creating strong abstractions. We want
|
||||
|
@ -592,4 +592,4 @@ If this is not clear, maybe I will write example 5 that shows this pattern in
|
|||
action. In the meantime, you can see examples like this in [the fancy version
|
||||
of the TodoMVC app written in Elm][fancy].
|
||||
|
||||
[fancy]: https://github.com/evancz/elm-todomvc/blob/trim/Todo.elm
|
||||
[fancy]: https://github.com/evancz/elm-todomvc/blob/trim/Todo.elm
|
||||
|
|
Loading…
Reference in a new issue