Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="QP Arrays example for emberjs website" />
<meta charset=utf-8 />
<title>JS Bin</title>
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v2.0.0.js"></script>
  <script src="http://builds.emberjs.com/ember-latest.js"></script>
</head>
<body>
  <script type="text/x-handlebars" data-template-name="application">
    <h2>New Ember.js Query Params API: Arrays</h2>
    <ul>
      {{#each foo}}
        <li>
          {{this}} 
          <button {{action 'removeItem' this}}>Remove</button>
        </li>
      {{/each}}
    </ul>
    {{input value=text}}
    <button {{action 'add'}}>Add</button>
    <button {{action 'swap'}}>Swap Out Array</button>
  </script>
</body>
</html>
  
Output

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

Dismiss x
public
Bin info
billybonkspro
0viewers