0.0.1 • Published 9 years ago
computed v0.0.1
Computed
Ember like computed property with ES7 decorator for JavaScript classes
import computed from 'computed';
class Ygritte {
name = 'Jon Snow';
@computed('name')
get talk() {
return `You know nothing ${this.name}`;
}
}
const ygritte = new Ygritte();
ygritte.talk === 'You know nothing Jon Snow';
0.0.1
9 years ago