Array#includes()

includes (obj, startAt) Booleanpublic Inherited from Ember.Enumerable but overwritten in packages/ember-runtime/lib/mixins/array.js:593 Returns true if the passed object can be found in the array. This method is a Polyfill for ES 2016 Array.includes. If no startAt argument is given, the starting location to search is 0. If it's negative, searches from the index of this.length + startAt by asc. [1, 2, 3].includes(2); // true [1, 2, 3].includes(4); // false [1, 2, 3].includes(3, 2);

Ember.computed.sort()

sort (itemsKey, sortDefinition) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:584 A computed property which returns a new array with all the properties from the first dependent array sorted based on a property or sort function. The callback method you provide should have the following signature: function(itemA, itemB); itemA the first item to compare. itemB the second item to compare. This function should return negative number (e.g

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.

DS.Errors#remove()

remove (attribute) deprecated Defined in addon/-private/system/model/errors.js:280 Removes all error messages from the given attribute and sends becameValid event to the record if there no more errors left. Example: app/models/user.js import DS from 'ember-data'; export default DS.Model.extend({ email: DS.attr('string'), twoFactorAuth: DS.attr('boolean'), phone: DS.attr('string') }); app/routes/user/edit.js import Ember from 'ember'; export default Ember.Route.extend({ actions: {

Rendering Performance

Rendering Performance You can use the Inspector to measure your app's render times. Click on Render Performance to start inspecting render times. Accuracy Using the Inspector adds a delay to your rendering, so the durations you see are not an accurate representation of the speed of your production apps. Use these times to compare durations and debug rendering bottlenecks, but not as a way to accurately measure rendering times. Toolbar Click on the "clear" icon to remove existing render logs.

Route#serializeQueryParamKey()

serializeQueryParamKey (controllerPropertyName) private Defined in packages/ember-routing/lib/system/route.js:379 Serializes the query parameter key Parameters: controllerPropertyName String

DS.Model#isValid

isValid{Boolean} Defined in addon/-private/system/model/model.js:211 If this property is true the record is in the valid state. A record will be in the valid state when the adapter did not report any server-side validation failures.

Component#init()

initprivate Inherited from Ember.CoreObject but overwritten in packages/ember-views/lib/mixins/view_support.js:388 Setup a view, but do not finish waking it up. configure childViews register the view with the global views hash, which is used for event dispatch

Ember.propertyWillChange()

propertyWillChange (obj, keyName) Voidprivate Defined in packages/ember-metal/lib/property_events.js:27 This function is called just before an object property is about to change. It will notify any before observers and prepare caches among other things. Normally you will not need to call this method directly but if for some reason you can't directly watch a property you can invoke this method manually along with Ember.propertyDidChange() which you should call just after the property value c

Ember.wrap()

wrap (func, superFunc) Functionprivate Defined in packages/ember-metal/lib/utils.js:276 Wraps the passed function so that this._super will point to the superFunc when the function is invoked. This is the primitive we use to implement calls to super. Parameters: func Function The function to call superFunc Function The super function. Returns: Function wrapped function.