Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="EmberJS Components Yielded Content Bug" />
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.2/jquery.js"></script>
<script src="http://builds.emberjs.com/ember-latest.js"></script>
<meta charset=utf-8 />
<title>Ember JS Bin</title>
</head>
<body>
  
<script type="text/x-handlebars">
<p>This bin shows that properties bound inside a Components yielded content are not set correctly.</p>
{{view Ember.Select 
  contentBinding=pizzaTypes 
  prompt="Pick a pizza type:"
  selectionBinding=selectedVal}}
<br>
<br>
<b>Test Using yield:</b><br>
{{#comp-yield}}
You selected a "{{selectedVal}}" Slice
{{/comp-yield}}
<br>
<b>Test Using attribute:</b><br>
{{comp-attr type=selectedVal}}
</script>
  
<script type="text/x-handlebars" id="components/comp-yield">
{{yield}}
</script>
  
<script type="text/x-handlebars" id="components/comp-attr">
You selected a "{{type}}" Slice
</script>
  
</body>
</html>
Output

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

Dismiss x
public
Bin info
mordytkpro
0viewers