https://github.com/emberjs/ember-legacy-controllers
https://github.com/emberjs/ember-legacy-controllers
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/emberjs/ember-legacy-controllers
- Owner: emberjs
- License: mit
- Archived: true
- Created: 2015-06-21T14:36:07.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T21:25:00.000Z (almost 6 years ago)
- Last Synced: 2024-10-29T14:48:21.097Z (over 1 year ago)
- Language: JavaScript
- Size: 876 KB
- Stars: 8
- Watchers: 16
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
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({
// ...
})
```