Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
<script src="http://builds.emberjs.com/ember-latest.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <script type="text/x-handlebars" data-template-name="index">
    <p>The <code>name</code> property outside the component's template: {{name}}</p>
    {{#my-component}}
      The <code>name</code> property inside the component's block template: {{name}}
    {{/my-component}}
  </script>
  
  <script type="text/x-handlebars" data-template-name="components/my-component">
    <p>{{yield}}</p>
    <p>The <code>name</code> property in the component's template: {{name}}</p>
  </script>
</body>
</html>
 
App = Ember.Application.create();
App.IndexRoute = Ember.Route.extend({
  model: function() {
    return { name: "Girl Talk" } 
  }
});
Output

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

Dismiss x