Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
<script src="http://twitter.github.io/bootstrap/assets/js/bootstrap.js"></script>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ember.js/1.0.0-rc.1/ember.js"></script>
<meta charset=utf-8 />
  <title>Ember {{#linkTo}} problems</title>
</head>
<body>
  
  
  <script type="text/x-handlebars" data-template-name="application">
      <div class="bordered">
        <p>Application Template</p>
        {{outlet album}}
      </div>
  </script>
  
  <script type="text/x-handlebars" data-template-name="album">
      <div class="bordered">
        <p>Photo Album Template</p>
        
        <div class="btn-group">
            <button class="btn">
            
                <!-- This linkTo will crash the app when uncommented
                as the images collection hasn't loaded yet, so it
                can't compute the next capture in the sequence and
                return the model here -->
                {{! #linkTo image controllers.images.nextCapture}}
                Next Image
                {{! /linkTo}}
            </button>
       </div>
  
        
      </div>
  </script>
  
  
  
  <!--<button class="btn">click me </button>-->
  
  
</body>
</html>
 
.bordered {
    border: 1px solid rgb(212, 212, 212);
}
Output

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

Dismiss x
public
Bin info
timiyaypro
0viewers