# ember-binding-macros

> The default blueprint for ember-cli addons.

Latest version **0.3.1** (published 2015-12-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-binding-macros
pnpm add ember-binding-macros
yarn add ember-binding-macros
bun add ember-binding-macros
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2015-12-07 |
| First published | 2015-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | cowboyd |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-binding-macros
- Repository: https://github.com/cowboyd/ember-binding-macros
- Homepage: https://github.com/cowboyd/ember-binding-macros#readme
- Issues: https://github.com/cowboyd/ember-binding-macros/issues
- npm.io page: https://npm.io/package/ember-binding-macros

## Dependencies (1)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^4.0.0

## Recent versions

- 0.3.1 (latest) — 2015-12-07
- 0.3.0 — 2015-04-03
- 0.2.3 — 2015-04-03
- 0.2.2 — 2015-02-12
- 0.2.1 — 2015-02-06
- 0.1.1 — 2015-01-26
- 0.1.0 — 2015-01-20

## README

# Ember Binding Macros
[![npm version](https://badge.fury.io/js/ember-binding-macros.svg)](http://badge.fury.io/js/ember-binding-macros)
[![Ember Observer Score](http://emberobserver.com/badges/ember-binding-macros.svg)](http://emberobserver.com/addons/ember-binding-macros)
[![Build Status](https://travis-ci.org/cowboyd/ember-binding-macros.png?branch=master)](https://travis-ci.org/cowboyd/ember-binding-macros)



Ember has a great data binding system that is used in its
templates. There is also a limited object syntax for it.

This addon enhances that syntax by letting you bind any property of an
object to any other property by giving it a `propertyBindings` array:

```js
var Staircase = Ember.Object.create({
  propertyBindings: ['fourth > third', 'third > second', 'second > first']
})

var stairs = Staircase.create({
  fourth: 'Redpaint'
})

stairs.get('third') //=> Redpaint
stairs.get('second') //=> Redpaint
stairs.get('first') //=> Redpaint

stairs.set('third', 'Bluepaint') //=> Bluepaint

stairs.get('second') //=> Bluepaint
stairs.get('first') //=> Bluepaint
stairs.get('fourth') // Redpaint


```

## Installation

* `git clone` this repository
* `npm install --save ember-binding-macros`


## Running Tests

* `ember test`
* `ember test --server`

---
_Source: https://npm.io/package/ember-binding-macros · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
