MutableEnumerable#addObject()

addObject (object) Objectpublic Defined in packages/ember-runtime/lib/mixins/mutable_enumerable.js:52 Required. You must implement this method to apply this mixin. Attempts to add the passed object to the receiver if the object is not already present in the collection. If the object is present, this method has no effect. If the passed object is of a type not supported by the receiver, then this method should raise an exception. Parameters: object Object The object to add to the enumera

DS.RESTSerializer#normalize()

normalize (modelClass, resourceHash, prop) Object Inherited from DS.JSONSerializer but overwritten in addon/serializers/rest.js:91 Normalizes a part of the JSON payload returned by the server. You should override this method, munge the hash and call super if you have generic normalization to do. It takes the type of the record that is being normalized (as a DS.Model class), the property where the hash was originally found, and the hash to normalize. For example, if you have a payload that l

Ember.getProperties()

getProperties (obj, list) Objectpublic Defined in packages/ember-metal/lib/get_properties.js:3 To get multiple properties at once, call Ember.getProperties with an object followed by a list of strings or an array: Ember.getProperties(record, 'firstName', 'lastName', 'zipCode'); // { firstName: 'John', lastName: 'Doe', zipCode: '10011' } is equivalent to: Ember.getProperties(record, ['firstName', 'lastName', 'zipCode']); // { firstName: 'John', lastName: 'Doe', zipCode: '10011' } Paramet

Displaying a List of Items

Displaying a List of Items To iterate over a list of items, use the {{#each}} helper. The first argument to this helper is the array to be iterated, and the value being iterated is yielded as a block param. Block params are only available inside the block of their helper. For example, this template iterates an array named people that contains objects. Each item in the array is provided as the block param person. <ul> {{#each people as |person|}} <li>Hello, {{person.name}}!&l

Observable#beginPropertyChanges()

beginPropertyChangesEmber.Observableprivate Defined in packages/ember-runtime/lib/mixins/observable.js:231 Begins a grouping of property changes. You can use this method to group property changes so that notifications will not be sent until the changes are finished. If you plan to make a large number of changes to an object at one time, you should call this method at the beginning of the changes to begin deferring change notifications. When you are done making changes, call endPropertyChang

ViewTargetActionSupport#didInsertElement event

didInsertElementpublic Defined in packages/ember-views/lib/mixins/view_support.js:305 Called when the element of the view has been inserted into the DOM or after the view was re-rendered. Override this function to do any set up that requires an element in the document body. When a view has children, didInsertElement will be called on the child view(s) first, bubbling upwards through the hierarchy.

Registry#expandLocalLookup()

expandLocalLookup (fullName, options) Stringprivate Defined in packages/container/lib/registry.js:778 Given a fullName and a source fullName returns the fully resolved fullName. Used to allow for local lookup. let registry = new Registry(); // the twitter factory is added to the module system registry.expandLocalLookup('component:post-title', { source: 'template:post' }) // => component:post/post-title Parameters: fullName String options [Object] source [String] the fullname

Ember.listenersFor()

listenersFor (obj, eventName) private Defined in packages/ember-metal/lib/events.js:257 Parameters: obj eventName String

Array#@each

@eachpublic Defined in packages/ember-runtime/lib/mixins/array.js:555 Returns a special object that can be used to observe individual properties on the array. Just get an equivalent property on this object and it will return an enumerable that maps automatically to the named key on the member objects. @each should only be used in a non-terminal context. Example: myMethod: computed('posts.@each.author', function(){ ... }); If you merely want to watch for the array being changed, like an o

Function#observes()

observespublic Defined in packages/ember-runtime/lib/ext/function.js:81 The observes extension of Javascript's Function prototype is available when EmberENV.EXTEND_PROTOTYPES or EmberENV.EXTEND_PROTOTYPES.Function is true, which is the default. You can observe property changes simply by adding the observes call to the end of your method declarations in classes that you write. For example: Ember.Object.extend({ valueObserver: function() { // Executes whenever the "value" property chang