Last active
February 22, 2017 10:36
-
-
Save janmisek/e7d59785acce4bb5b93b06e51e4d64d1 to your computer and use it in GitHub Desktop.
Ember computed property meta - Set the meta, get the meta
This file contains 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
//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