Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cibernox/ember-proxy-controllers

Ember.ObjectController and Ember.ArrayController extracted as an standalone addon
https://github.com/cibernox/ember-proxy-controllers

Last synced: 17 days ago
JSON representation

Ember.ObjectController and Ember.ArrayController extracted as an standalone addon

Awesome Lists containing this project

README

        

# Ember-proxy-controllers

Ember.ObjectController and Ember.ArrayController extracted as an standalone addon.

## Installation

Run `ember install ember-proxy-controllers` and you're good to go

## Usage

Import the classes from the addon and extend them as with the old `Ember.ArrayController`
and `Ember.ObjectController`

```js
// app/controllers/posts.js
import ArrayController from 'ember-proxy-controllers/array'

export default ArrayController.extend({
// ...
})
```

```js
// app/controllers/post.js
import ObjectController from 'ember-proxy-controllers/object'

export default ObjectController.extend({
// ...
})
```