Ember.computed.and()

and (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:423 A computed property that performs a logical and on the original values for the provided dependent properties. You may pass in more than two properties and even use property brace expansion. The computed property will return the first falsy value or last truthy value just like JavaScript's && operator. Example let Hamster = Ember.Object.extend({ readyForCamp: Ember.

ControllerMixin#replaceRoute()

replaceRoute (name, models) private Defined in packages/ember-routing/lib/ext/controller.js:122 Transition into another route while replacing the current URL, if possible. This will replace the current history entry instead of adding a new one. Beside that, it is identical to transitionToRoute in all other respects. aController.replaceRoute('blogPosts'); aController.replaceRoute('blogPosts.recentEntries'); Optionally supply a model for the route in question. The model will be serialized in

CoreObject#reopen()

reopenpublic Defined in packages/ember-runtime/lib/system/core_object.js:681 Augments a constructor's prototype with additional properties and functions: MyObject = Ember.Object.extend({ name: 'an object' }); o = MyObject.create(); o.get('name'); // 'an object' MyObject.reopen({ say: function(msg){ console.log(msg); } }) o2 = MyObject.create(); o2.say("hello"); // logs "hello" o.say("goodbye"); // logs "goodbye" To add functions and properties to the constructor itself, see r

Component#didReceiveAttrs()

didReceiveAttrspublic Defined in packages/ember-htmlbars/lib/component.js:352 Available since 1.13.0 Called when the attributes passed into the component have been updated. Called both during the initial render of a container and during a rerender. Can be used in place of an observer; code placed here will be executed every time any attribute updates.

MutableArray#shiftObject()

shiftObjectpublic Defined in packages/ember-runtime/lib/mixins/mutable_array.js:234 Shift an object from start of array or nil if none are left. Works just like shift() but it is KVO-compliant. let colors = ['red', 'green', 'blue']; colors.shiftObject(); // 'red' console.log(colors); // ['green', 'blue'] Returns: object

ViewTargetActionSupport#rerender()

rerenderpublic Defined in packages/ember-views/lib/mixins/view_support.js:62 Renders the view again. This will work regardless of whether the view is already in the DOM or not. If the view is in the DOM, the rendering process will be deferred to give bindings a chance to synchronize. If children were added during the rendering process using appendChild, rerender will remove them, because they will be added again if needed by the next render. In general, if the display of your view changes,

Initializers

Initializers Initializers provide an opportunity to configure your application as it boots. There are two types of initializers: application initializers and application instance initializers. Application initializers are run as your application boots, and provide the primary means to configure dependency injections in your application. Application instance initializers are run as an application instance is loaded. They provide a way to configure the initial state of your application, as well

DS.RESTAdapter#updateRecord()

updateRecord (store, type, snapshot) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:735 Called by the store when an existing record is saved via the save method on a model record instance. The updateRecord method serializes the record and makes an Ajax (HTTP PUT) request to a URL computed by buildURL. See serialize for information on how to customize the serialized form of a record. Parameters: store DS.Store type DS.Model snapshot DS.Snapshot Retur

Route#controller

controllerEmber.Controllerpublic Defined in packages/ember-routing/lib/system/route.js:729 Available since 1.6.0 The controller associated with this route. Example App.FormRoute = Ember.Route.extend({ actions: { willTransition: function(transition) { if (this.controller.get('userHasEnteredData') && !confirm('Are you sure you want to abandon progress?')) { transition.abort(); } else { // Bubble the `willTransition` action so that //

DS.Store#_fetchAll()

_fetchAll (typeClass, array) Promiseprivate Defined in addon/-private/system/store.js:1423 Parameters: typeClass DS.Model array DS.RecordArray Returns: Promise promise