Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Ember Starter Kit</title>
  <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css">
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  <script src="http://builds.emberjs.com/tags/v1.13.5/ember-template-compiler.js"></script>
  <script src="http://builds.emberjs.com/tags/v1.13.5/ember.debug.js"></script>
</head>
<body>
  <script type="text/x-handlebars">
    {{outlet}}
  </script>
  <script type="text/x-handlebars" data-template-name="index">
    <div>Your Goal: {{goal}}</div>
    <div>
      {{input type="text" value=goal}}
      <button {{action 'nextStep'}} class="btn btn--red">Next Step</button>
    </div>
  </script>
</body>
</html>
 
App = Ember.Application.create();
App.Router.map(function() {
  // put your routes here
});
App.IndexController = Ember.Controller.extend({
  goal: '',
  actions: {
    nextStep: function() {
      console.log('Goto next step: ', this.get('goal'));
    }
  }
});
Console
    Output 300px

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

    Dismiss x
    public
    Bin info
    subletpro
    0viewers