-
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
render_footer renders the <footer> element of Todo App #53
Comments
nelsonic
changed the title
render_footer renders the <footer> element of the Todo List App
render_footer renders the <footer> element of Todo App
Aug 7, 2018
nelsonic
added a commit
that referenced
this issue
Aug 7, 2018
|
nelsonic
added a commit
that referenced
this issue
Aug 7, 2018
nelsonic
added a commit
that referenced
this issue
Aug 7, 2018
nelsonic
added a commit
that referenced
this issue
Sep 7, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Todo App
<footer>
ElementReferring to the rendered HTML on http://todomvc.com/examples/vanillajs as our "guide":
there is:
<footer>
element with<span>
element which containstext
node with: "{count}
item(s) left".<ul>
containing<li>
elements each with<a>
) which allow the "user" to filter which items appear in the<view>
.<button class="clear-completed">
which will Clear allCompleted
items when clicked.Dev Tools > Elements (inspector)
Copy-paste the rendered HTML
I "copy-pasted" of the rendered HTML from the Dev Tools:
Technical Acceptance Criteria
render_footer
returns a<footer>
DOM element which can be rendered directly to thedocument
or nested in another DOM element.<footer>
contains:<span class="todo-count">
which containstext
node with: "{count}
item(s) left".pseudocode:
{model.todos.filter(done==false)}
item{model.todo.length > 1 ? 's' : '' }
left<ul>
containing 3<li>
with the following links (<a>
):All
:<a href="#/" class="selected">All</a>
class="selected"
should only appear on the selected menu/navigation item.this should be "driven" by the
model.hash
property.Active
:<a href="#/active">Active</a>
Completed
:<a href="#/completed">Completed</a>
<button class="clear-completed" style="display: block;">
will Clear allCompleted
items.pseudocode:
var new_model = model.todos.filter(function(item) { return item.done === false})
This issue is part of the TodoMVC Feature List [Epic] #48
The text was updated successfully, but these errors were encountered: