computed

0.0.1 • Public • Published

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';
 

/computed/

    Package Sidebar

    Install

    npm i computed

    Weekly Downloads

    50

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • orisomething