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

https://github.com/emberjs/ember-legacy-controllers


https://github.com/emberjs/ember-legacy-controllers

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# Ember-legacy-controllers

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

## Installation

Run `ember install ember-legacy-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-legacy-controllers/array'

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

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

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