Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>Ember.js • TodoMVC</title>
</head>
<body>
  
  <script type="text/x-handlebars" data-template-name="todos">
  
  <section id="todoapp">
    <header id="header">
      <h1>todos</h1>
      {{input type="text" 
              id="new-todo" 
              placeholder="What needs to be done?"
              valueBinding="newTitle" 
              action="createTodo"}}
    </header>
      <section id="main">
        <ul id="todo-list">
        {{#each filteredTodos itemController="todo"}}
          <li {{bindAttr class="isCompleted:completed isEditing:editing"}}>
            {{#if isEditing}}
              {{view Todos.EditTodoView todoBinding="this"}}
            {{else}}
              {{view Ember.Checkbox checkedBinding="isCompleted" class="toggle"}}
                <label {{action "editTodo" on="doubleClick"}}>{{title}}</label>
                <button {{action "removeTodo"}} class="destroy"></button>
            {{/if}}
          </li>
        {{/each}}
        </ul>
        {{view Ember.Checkbox id="toggle-all" checkedBinding="allAreDone"}}
      </section>
      <footer id="footer">
        <span id="todo-count">{{{remainingFormatted}}}</span>
          <ul id="filters">
            <li>
              {{#linkTo todos activeClass="selected"}}All{{/linkTo}}
            </li>
            <li>
              {{#linkTo todos.active activeClass="selected"}}Active{{/linkTo}}
            </li>
            <li>
            {{#linkTo todos.completed activeClass="selected"}}Completed{{/linkTo}}
            </li>
          </ul>
          {{#if hasCompleted}}
            <button id="clear-completed" 
                    {{action "clearCompleted"}} 
                    {{bindAttr class="buttonClass:hidden"}}>
              Clear completed ({{completed}})
            </button>
          {{/if}}
      </footer>
  </section>
  <footer id="info">
    <p>Double-click to edit a todo</p>
  </footer>
  
  </script> 
  
  <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> 
  <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/showdown/0.3.1/showdown.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script> 
  <script src="//cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.3/ember.js"></script> 
  <script src="http://emberjs.com.s3.amazonaws.com/getting-started/ember-data.js"></script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers