Closed nelsonic closed 6 years ago
A todo list has only 2 basic functions:
new
[Enter]
Add item and Check-off is exactly the "functionality" you would have in a paper-based Todo List.
In addition to these basic functions, TodoMVC has the ability to:
edit
X
<footer>
below the main interface there is a <footer> with a count, 3 view toggles and one action:
{store.items.filter(complete==false)}
{store.items.length > 1 ? 's' : '' }
All
Active
Completed
item.done === true
Finally, if you click around the <footer> toggle menu, you will notice that the Web Bowser Address bar changes to reflect the chosen view.
When a route link is clicked
[x] update invokes route(model, title, hash) function which updates model.hash to the value of hash
update
route(model, title, hash)
model.hash
hash
[x] filter view based on model.hash
active
ALL
!item.done
complete
[x] Subscriptions for event handling e.g: keyboard press & navigation changes #57
View works:
Todo List Basic Functionality
A todo list has only 2 basic functions:
new
item to the list[Enter]
key is pressed https://github.com/dwyl/learn-elm-architecture-in-javascript/issues/55TodoMVC "Advanced" Functionality
In addition to these basic functions, TodoMVC has the ability to:
edit
it.X
on item row to remove from list.<footer>
Menu > GOTO: https://github.com/dwyl/learn-elm-architecture-in-javascript/issues/53below the main interface there is a
<footer>
with a count, 3 view toggles and one action:{store.items.filter(complete==false)}
item{store.items.length > 1 ? 's' : '' }
leftAll
Active
Completed
Completed
> deleteitem.done === true
Routing / Navigation
Finally, if you click around the
<footer>
toggle menu, you will notice that the Web Bowser Address bar changes to reflect the chosen view.When a route link is clicked
[x]
update
invokesroute(model, title, hash)
function which updatesmodel.hash
to the value ofhash
[x] filter view based on
model.hash
<footer>
view button asactive
ALL
: no filteractive
:!item.done
complete
:item.done === true
[x] Subscriptions for event handling e.g: keyboard press & navigation changes #57