Ember.addListener()

addListener (obj, eventName, target, method, once) public Defined in packages/ember-metal/lib/events.js:70 Add an event listener Parameters: obj eventName String target Object|Function A target object or a function method Function|String A function or the name of a function to be called on `target` once Boolean A flag whether a function should only be called once

DataAdapter#getRecordColumnValues()

getRecordColumnValuesObjectprivate Defined in packages/ember-extension-support/lib/data_adapter.js:435 Gets the values for each column. Returns: Object Keys should match column names defined by the model type.

Observable#propertyWillChange()

propertyWillChange (keyName) Ember.Observableprivate Defined in packages/ember-runtime/lib/mixins/observable.js:270 Notify the observer system that a property is about to change. Sometimes you need to change a value directly or indirectly without actually calling get() or set() on it. In this case, you can use this method and propertyDidChange() instead. Calling these two methods together will notify all observers that the property has potentially changed value. Note that you must always ca

DS.RESTAdapter#_requestFor()

_requestFor (params) Objectprivate Defined in addon/adapters/rest.js:1326 Get an object which contains all properties for a request which should be made. Parameters: params Object Returns: Object request object

DS.Ember.HTMLBars.helpers.pluralize()

pluralize (count, word) Defined in node_modules/ember-inflector/addon/lib/helpers/pluralize.js:4 If you have Ember Inflector (such as if Ember Data is present), pluralize a word. For example, turn "ox" into "oxen". Example: {{pluralize count myProperty}} {{pluralize 1 "oxen"}} {{pluralize myProperty}} {{pluralize "ox"}} Parameters: count [Number|Property] count of objects word String|Property word to pluralize

DS.Transform#serialize()

serialize (deserialized, options) Defined in addon/transform.js:70 When given a deserialized value from a record attribute this method must return the serialized value. Example serialize: function(deserialized, options) { return Ember.isEmpty(deserialized) ? null : Number(deserialized); } Parameters: deserialized The deserialized value options hash of options passed to `DS.attr` Returns: The serialized value

DS.Model.relationshipNames

relationshipNamesObjectstatic Defined in addon/-private/system/relationships/ext.js:366 A hash containing lists of the model's relationships, grouped by the relationship kind. For example, given a model with this definition: app/models/blog.js import DS from 'ember-data'; export default DS.Model.extend({ users: DS.hasMany('user'), owner: DS.belongsTo('user'), posts: DS.hasMany('post') }); This property would contain the following: import Ember from 'ember'; import Blog from 'app/mo

Redirecting

Redirecting Sometimes you want to redirect a user to a different page than what they requested for. For example, if they're not logged in, you might want to prevent them from editing their profile, accessing private information, or checking out items in their shopping cart. Usually you want to redirect them to the login page, and after they have successfully logged in, take them back to the page they originally wanted to access. There are many other reasons you probably want to have the last

Controllers

Introduction Controllers Controllers behave like a specialized type of Component that is rendered by the router when entering a Route. The controller receives a single property from the Route – model – which is the return value of the Route's model() method. To define a Controller, run: ember generate controller my-controller-name The value of my-controller-name must match the name of the Route that renders it. So a Route named blog-post would have a matching Controller named blog-post. You

MutableArray#setObjects()

setObjects (objects) Ember.Arraypublic Defined in packages/ember-runtime/lib/mixins/mutable_array.js:320 Replace all the receiver's content with content of the argument. If argument is an empty array receiver will be cleared. let colors = ['red', 'green', 'blue']; colors.setObjects(['black', 'white']); // ['black', 'white'] colors.setObjects([]); // [] Parameters: objects Ember.Array array whose content will be used for replacing the content of the receiver Retur