Reputation: 32945
Given an Ember class with properties, like so:
User = Ember.Object.extend({
foo: 42
});
how do I access the value of foo
if I have only the User
class? I do not want to .create
an instance.
Upvotes: 4
Views: 1216
Reputation: 12011
Hum, try it:
Ember.keys(User.proto()).forEach(function(prop){console.log(Ember.get(User.proto(), prop))})
Upvotes: 5