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/2.1.0/normalize.css">
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  <script src="http://builds.emberjs.com/canary/ember.debug.js"></script>
  <script src="http://builds.emberjs.com/canary/ember-template-compiler.js"></script>
</head>
<body>
  <div id='app'></div>  
  <script type="text/x-handlebars">
    {{foo-bar model=model save=(route-action 'save')}}
  </script>
  <script type="text/x-handlebars" id="components/foo-bar">
    <div>{{input value=model.name disabled=(if isSaving 'disabled')}}</div>
    <div>{{input value=model.username disabled=(if isSaving 'disabled')}}</div>
    {{#if isSaving}}
      Saving...
    {{else}}
      <button {{action 'save' model}}>Save</button>
    {{/if}}
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers