gokatz
3/10/2016 - 5:26 AM

test

test

{
  "version": "0.6.3",
  "EmberENV": {
    "FEATURES": {}
  },
  "options": {
    "enable-testing": false
  },
  "dependencies": {
    "jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
    "ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.4.1/ember.debug.js",
    "ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.4.0/ember-data.js",
    "ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.4.1/ember-template-compiler.js"
  }
}
<h1>Welcome to {{appName}}</h1>
<br>
{{model}}
<br>
{{outlet}}
<br>
<br>
import Ember from 'ember';

export default Ember.Route.extend({
  model: function () {
    alert('hai');
  },
  afterModel: function () {
    alert('hello');
  },
  beforeModel: function() {
  	alert('yes');
  }
});
import Ember from 'ember';

export default Ember.Controller.extend({
  appName: 'Ember Twiddle'
});