Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Ember - stackoverflow flair" />
<meta charset=utf-8 />
<title>Ember stackoverflow flair</title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css" rel="stylesheet">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/js/bootstrap.min.js"></script>
  <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  <script src="http://builds.emberjs.com/handlebars-1.0.0.js"></script>
  <script src="http://builds.emberjs.com/ember-latest.js"></script>
  <script src="http://builds.emberjs.com/ember-data-latest.js"></script>
</head>
<body>
  <script type="text/x-handlebars">
    <div class="row">
      {{#linkTo 'index' classNames="btn btn-info"}}Home{{/linkTo}}
      {{#linkTo 'about' classNames="btn btn-info"}}About{{/linkTo}}
      {{#linkTo 'contact' classNames="btn btn-info"}}Contact{{/linkTo}}
    </div>
    {{outlet}}
  </script>
    <script type="text/x-handlebars" data-template-name="index">
    <h2>Home</h2>
  </script>
    <script type="text/x-handlebars" data-template-name="about">
    <h2>About</h2>
  </script>
    <script type="text/x-handlebars" data-template-name="contact">
      <h2>Contact</h2>
  </script>
</body>
</html>
  
 
App = Ember.Application.create({
  ready: function() {
    console.log('App ready');
  }
});
App.Store = DS.Store.extend({
  adapter: DS.FixtureAdapter
});
App.Router.map(function() {
  this.resource('index', {path: '/'});
  this.resource('about');
  this.resource('contact');
});
Ember.View.reopen({
  render: function(buffer) {
    this._super(buffer);
    console.log(this.get('elementId'));
  }
});
Output 300px

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

Dismiss x
public
Bin info
alex.daquinopro
0viewers