Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
<script src="http://builds.emberjs.com/tags/v1.1.2/ember.min.js"></script>
  <script src='http://builds.emberjs.com/beta/ember-data.js'></script>
  
  
  
  
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
  
  <script type="text/x-handlebars">
    <h2>Welcome to Ember.js {{firstName}}</h2>
    
  </script>
  
</body>
</html>
 
window.App = Ember.Application.create();
App.ApplicationAdapter = DS.FixtureAdapter;
App.User = DS.Model.extend({
  firstName: DS.attr('string'),
  lastName: DS.attr('string'),
  administrator: DS.attr('boolean')
});
App.ApplicationRoute = Em.Route.extend({
  model: function(){
    return this.store.find('user', 1);
  }
  
});
App.User.FIXTURES = [
  {
    id: 1,
    firstName: 'Tom',
    lastName: 'Dale'
  },
  {
    id: 2,
    firstName: 'Matthew',
    lastName: 'Lehner'
  },
  {
    id: 3,
    firstName: 'Yehuda',
    lastName: 'Katz'
  }
];
Output

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

Dismiss x
public
Bin info
kingpin2kpro
0viewers