Skip to content

Instantly share code, notes, and snippets.

@janmisek
Last active February 22, 2017 10:36
Show Gist options
  • Save janmisek/e7d59785acce4bb5b93b06e51e4d64d1 to your computer and use it in GitHub Desktop.
Save janmisek/e7d59785acce4bb5b93b06e51e4d64d1 to your computer and use it in GitHub Desktop.
Ember computed property meta - Set the meta, get the meta
//Usage of metas: http://emberjs.com/api/classes/Ember.ComputedProperty.html#method_meta
const o = Ember
.Object
.extend({
prop: Ember.computed(function(key) {
console.log(this.constructor.metaForProperty(key));
}).meta({key: 'value'})
}).create();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment