Last active
December 15, 2015 05:19
-
-
Save tomdale/5207978 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//our app | |
var HelloEmber = Ember.Application.create({}); | |
//our model | |
HelloEmber.Greeting = Ember.Object.extend(); | |
HelloEmber.Greeting.reopenClass({ | |
get : function(){ | |
return {greeting : "Good Morning Starshine!", happyThought : "The Earth Says Hello!"} | |
} | |
}); | |
//our route | |
HelloEmber.IndexRoute = Ember.Route.extend({ | |
model : function(){ | |
return HelloEmber.Greeting.get(); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//our app | |
var HelloEmber = Ember.Application.create({}); | |
//our route | |
HelloEmber.IndexRoute = Ember.Route.extend({ | |
model : function(){ | |
return Ember.Object.create({ | |
greeting: "Good Morning Starshine!", | |
happyThought: "The Earth Says Hello!" | |
}); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//our app | |
var HelloEmber = Ember.Application.create({}); | |
HelloEmber.Greeting = Ember.Object.extend({ | |
greeting: "Good Morning Starshine!", | |
happyThought: "The Earth Says Hello!" | |
}); | |
//our route | |
HelloEmber.IndexRoute = Ember.Route.extend({ | |
model : function(){ | |
return HelloEmber.Greeting.create(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment