Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  
  <script type="text/x-handlebars">
  {{#link-to 'student'}} pay {{/link-to}}
   {{outlet}}
  </script>
  
  <script type="text/x-handlebars" id='student'>
  <form >
    
        {{input valueBinding="email" size=20}}
  </form>
     
  </script>
  
  <script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
  
  
 <script src="http://builds.emberjs.com/beta/ember.js"></script>
  
 <script src="http://builds.emberjs.com/beta/ember-data.js"></script>
  
  <script src="http://builds.emberjs.com/canary/ember-data.prod.js"></script>
  
</body>
</html>
 
App = Ember.Application.create();
App.Router.map(function(){ 
    this.route('student');
});
App.StudentRoute = Ember.Route.extend({
   model: function() {
     return this.createRecord('student');
   }
}); 
App.Student = DS.Model.extend({
  email: DS.attr('string')
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers