Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<link href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script>
<script src="http://builds.emberjs.com/tags/v1.8.1/ember.min.js"></script>
<script src="http://builds.emberjs.com/tags/v1.0.0-beta.12/ember-data.min.js"></script>
  <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-mockjax/1.5.3/jquery.mockjax.min.js"></script>
  <meta charset="utf-8">
  <title>Ember Zombie Observers</title>
</head>
<body>
  <script type="text/x-handlebars">
    <h1>Polling observers</h1>
    {{outlet}}
  </script>
  
  <script type="text/x-handlebars" data-template-name="parent">
    <h2>model {{id}}</h2>
    <p>progress : {{progress}}</p>
    
    {{outlet}}
  </script>
  
  <script type="text/x-handlebars" data-template-name="parent/child1">
    <h2>Child Step 1</h2>
    <p>This Polls until 50 then moves onto next step...</p>
  </script>
  
  <script type="text/x-handlebars" data-template-name="parent/child2">
    <h2>Child 2</h2>
    <p>Surely the observer on Child 1 should no longer be firing... but if you look in the console it is...</p>
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
chrismasterspro
0viewers