ember-reflection

0.0.2 • Public • Published

ember-reflection

Build Status

Returns an array of defined properties for an Ember object

Questions? Ping me @gavinjoyce

Installation

This is an Ember CLI addon, to install:

npm install ember-reflection --save

Usage Instructions

import Em from 'ember';
import getDefinedProperties from 'ember-reflection/get-defined-properties';
 
var Cat = Em.Object.extend({
  name: null,
  age: null,
  isOld: Em.computed.gt('age', 10)
});
 
var sully = Cat.create({
  name: 'Sully',
  age: 4
});
 
getDefinedProperties(sully); //=> ['name', 'age', 'isOld']

Development Instructions

  • git clone this repository
  • npm install
  • bower install

Running

Readme

Keywords

none

Package Sidebar

Install

npm i ember-reflection

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • gavinjoyce
  • patocallaghan
  • paddyobrien