DS.Errors#_findOrCreateMessages()

_findOrCreateMessagesprivate Defined in addon/-private/system/model/errors.js:255

Route#store()

store (store) private Defined in packages/ember-routing/lib/system/route.js:1531 Store property provides a hook for data persistence libraries to inject themselves. By default, this store property provides the exact same functionality previously in the model hook. Currently, the required interface is: store.find(modelName, findArguments) Parameters: store Object

Registry#register()

register (fullName, factory, options) private Defined in packages/container/lib/registry.js:151 Registers a factory for later injection. Example: let registry = new Registry(); registry.register('model:user', Person, {singleton: false }); registry.register('fruit:favorite', Orange); registry.register('communication:main', Email, {singleton: false}); Parameters: fullName String factory Function options Object

Array#length

lengthNumberpublic Defined in packages/ember-runtime/lib/mixins/array.js:214 Required. You must implement this method to apply this mixin. Your array must support the length property. Your replace methods should set this property whenever it changes.

Map#has()

has (key) Booleanprivate Defined in packages/ember-metal/lib/map.js:347 Check whether a key is present. Parameters: key * Returns: Boolean true if the item was present, false otherwise

Test#find()

find (selector) Objectpublic Defined in packages/ember-testing/lib/helpers.js:105 Finds an element in the context of the app's container element. A simple alias for app.$(selector). Example: var $el = find('.my-selector'); Parameters: selector String jQuery string selector for element lookup Returns: Object jQuery object representing the results of the query

ArrayProxy#_contentDidChange()

_contentDidChangeprivate Defined in packages/ember-runtime/lib/system/array_proxy.js:180 Invoked when the content property changes. Notifies observers that the entire array content has changed.

Building a Complex Component

Building a Complex Component As they search for a rental, users might also want to narrow their search to a specific city. Let's build a component that will let them filter rentals by city. To begin, let's generate our new component. We'll call this component list-filter, since all we want our component to do is filter the list of rentals based on input. ember g component list-filter As before, this creates a Handlebars template (app/templates/components/list-filter.hbs), a JavaScript file (

DS.RESTSerializer#serialize()

serialize (snapshot, options) Object Inherited from DS.JSONSerializer but overwritten in addon/serializers/rest.js:508 Called when a record is saved in order to convert the record into JSON. By default, it creates a JSON object with a key for each attribute and belongsTo relationship. For example, consider this model: app/models/comment.js import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr(), body: DS.attr(), author: DS.belongsTo('user') }); The default se

Route#modelFor()

modelFor (name) Objectpublic Defined in packages/ember-routing/lib/system/route.js:1738 Returns the resolved model of a parent (or any ancestor) route in a route hierarchy. During a transition, all routes must resolve a model object, and if a route needs access to a parent route's model in order to resolve a model (or just reuse the model from a parent), it can call this.modelFor(theNameOfParentRoute) to retrieve it. If the ancestor route's model was a promise, its resolved result is return