gokatz
3/15/2016 - 12:45 PM

lookup test

lookup test

{
  "version": "0.6.4",
  "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"
  }
}
import Ember from 'ember';

var nameModel =  Ember.Object.extend({
  name: 'gokul'
});

var ageModel =  Ember.Object.extend({
  name: 'gokul'
});

export {nameModel, ageModel};
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
import Ember from 'ember';

export default Ember.Controller.extend({
  appName: 'Ember Twiddle',
  test: Ember.computed(function() {
  	var t1 = this.container.lookupFactory('model:modelone')
  })
});