Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

emberjs/ember-legacy-controllers

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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

export default ArrayController.extend({
  // ...
})
// app/controllers/post.js
import ObjectController from 'ember-legacy-controllers/object'

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