Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin Ember Application</title>
  <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.3.0/handlebars.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/ember.js/1.5.1/ember.min.js"></script>
</head>
<body>
  <script type="text/x-handlebars">
    {{view App.SelectionListView content=items}}
    
    <p>You have selected {{#if selectionCount}} {{selectionCount}} {{else}} 0 {{/if}} items</p>
  </script>
  
  <script type="text/x-handlebars" data-template-name="selection_list">
    <dl class="selection-list">
      {{#each view.content}}
          <dd>
              {{#isArray this}}
                  {{view App.SelectionListView content=this}}
              {{else}}
                  <label class="checkbox">
                      {{view Ember.Checkbox}}
                      {{label}}
                  </label>
                  {{#isArray children}}
                      {{view App.SelectionListView content=children}}
                  {{/isArray}}
              {{/isArray}}
          </dd>
      {{/each}}
  </dl>
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
givansepro
0viewers