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 Starter Kit</title>
  <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css">
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script src="http://builds.emberjs.com/tags/v1.13.5/ember-template-compiler.js"></script>
  <script src="http://builds.emberjs.com/tags/v1.13.0/ember.js"></script>
</head>
<body>
  <script type="text/x-handlebars">
    <h2>Welcome to Ember.js</h2>
    
    {{outlet}}
  </script>
  <script type="text/x-handlebars" data-template-name="index">
    Things: {{things}}
    {{cat-wrapper class="button-wrapper" click=(action "buttonClick")}}
    {{dog-wrapper class="button-wrapper" click=(action "buttonClick")}}
  </script>
  
  <script type="text/x-handlebars" data-template-name="components/cat-wrapper">
    <h2>Cats</h2>
    {{press-button count=1 class="press-button" click=(action this.attrs.click "cat")}}
    {{press-button count=2 class="press-button" click=(action this.attrs.click "cats")}}
  </script>
  
  <script type="text/x-handlebars" data-template-name="components/dog-wrapper">
    <h2>Dogs</h2>
    {{press-button count=1 class="press-button" click=(action this.attrs.click "dog")}}
    {{press-button count=2 class="press-button" click=(action this.attrs.click "dogs")}}
  </script>
  
  <script type="text/x-handlebars" data-template-name="components/press-button">
    <button {{action (action this.attrs.click this.attrs.count)}}>{{this.attrs.count}}</button>
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
danmcclainpro
0viewers