Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <head>
<script src="//code.jquery.com/jquery-1.10.0.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.js"></script>
<script src="http://builds.emberjs.com.s3.amazonaws.com/tags/v1.0.0/ember.js"></script>
    
  </head>
  <body>
    
    <script type="text/x-handlebars">
      {{my-avatar service="twitter" username="leggetter"}}
    </script>
    
    <script type="text/x-handlebars" id="components/my-avatar">
      <img {{bind-attr src=url}} />
    </script>
 
    <script>
      var App = Ember.Application.create();
      
      App.MyAvatarComponent = Ember.Component.extend({
        url: function () {
          return 'http://avatars.io/' + this.get( 'service' ) + '/' + this.get( 'username' );
        }.property( 'username' , 'service' )
      });
    </script>
  </body>
</html>
Output

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

Dismiss x
public
Bin info
leggetterpro
0viewers