-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Counters on the Same Page 😮 #40
Labels
Comments
nelsonic
added a commit
that referenced
this issue
Jun 10, 2018
nelsonic
added a commit
that referenced
this issue
Jun 10, 2018
nelsonic
added a commit
that referenced
this issue
Jun 10, 2018
…0] } (Object) instead of model = 0 (Integer) for #40
nelsonic
added a commit
that referenced
this issue
Jun 12, 2018
nelsonic
added a commit
that referenced
this issue
Jun 16, 2018
nelsonic
added a commit
that referenced
this issue
Jun 16, 2018
nelsonic
added a commit
that referenced
this issue
Jun 16, 2018
nelsonic
added a commit
that referenced
this issue
Jun 16, 2018
nelsonic
added a commit
that referenced
this issue
Jun 16, 2018
nelsonic
added a commit
that referenced
this issue
Jun 16, 2018
…nters-instances/index.html instead of duplicating code! for #40
nelsonic
added a commit
that referenced
this issue
Jun 16, 2018
…nters-instances/index.html instead of duplicating code! for #40
nelsonic
added a commit
that referenced
this issue
Jul 30, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It occurred to me while applying the Elm Architecture to my little "side project": dwyl/time-mvp-node#33
That there's a "gap" in this tutorial, namely: how do we have a more "complex"
model
(all the examples in the tutorial, currently have
model
as anint
)I propose that we: write an "exercise for the reader" to:
a) refactor the
model
in the "reset counter" example to use anObject
e.g:
var model = { counters:[0] }
where the value of the first element in the
model.counters
Arrayis the value for the single counter example.
b) using the
var model = { counters:[0] }
approach, display multiple counters on the same page.c) write tests for the scenario where there are multiple counters on the same page.
The text was updated successfully, but these errors were encountered: