包详细信息

ember-proxy-controllers

cibernox1MIT0.0.2

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

ember-addon, ObjectController, ArrayController, proxy

自述文件

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

// app/controllers/posts.js
import { ArrayController } from 'ember-proxy-controllers'

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

export default ObjectController.extend({
})