Location#getHash()

getHashprivate Defined in packages/ember-routing/lib/location/api.js:181 Available since 1.4.0 Returns the current location.hash by parsing location.href since browsers inconsistently URL-decode location.hash. https://bugzilla.mozilla.org/show_bug.cgi?id=483304

Array#lastIndexOf()

lastIndexOf (object, startAt) Numberpublic Defined in packages/ember-runtime/lib/mixins/array.js:413 Returns the index of the given object's last occurrence. If no startAt argument is given, the search starts from the last position. If it's negative, will count backward from the end of the array. Returns -1 if no match is found. let arr = ['a', 'b', 'c', 'd', 'a']; arr.lastIndexOf('a'); // 4 arr.lastIndexOf('z'); // -1 arr.lastIndexOf('a', 2); // 0 arr.lastIndexOf('a', -1)

DS.Snapshot#modelName

modelName{String} Defined in addon/-private/system/snapshot.js:86 The name of the type of the underlying record for this snapshot, as a string.

DS.PromiseArray

DS.PromiseArray Class Extends: Ember.ArrayProxy Uses: Ember.PromiseProxyMixin Defined in: addon/-private/system/promise-proxies.js:7 Module: ember-data A PromiseArray is an object that acts like both an Ember.Array and a promise. When the promise is resolved the resulting value will be set to the PromiseArray's content property. This makes it easy to create data bindings with the PromiseArray that will be updated when the promise resolves. For more information see the Ember.PromiseProxyMix

ControllerMixin#target

targetpublic Defined in packages/ember-runtime/lib/mixins/controller.js:16 The object to which actions from the view should be sent. For example, when a Handlebars template uses the {{action}} helper, it will attempt to send the action to the view's controller's target. By default, the value of the target property is set to the router, and is injected when a controller is instantiated. This injection is applied as part of the application's initialization process. In most cases the target pr

String#capitalize()

capitalize (str) Stringpublic Defined in packages/ember-runtime/lib/system/string.js:319 Returns the Capitalized form of a string 'innerHTML'.capitalize() // 'InnerHTML' 'action_name'.capitalize() // 'Action_name' 'css-class-name'.capitalize() // 'Css-class-name' 'my favorite items'.capitalize() // 'My favorite items' 'privateDocs/ownerInvoice'.capitalize(); // 'PrivateDocs/ownerInvoice' Parameters: str String The string to capitalize. Returns: String The capita

Ember.run.scheduleOnce()

scheduleOnce (queue, target, method, args*) Objectpublic Defined in packages/ember-metal/lib/run_loop.js:364 Schedules a function to run one time in a given queue of the current RunLoop. Calling this method with the same queue/target/method combination will have no effect (past the initial call). Note that although you can pass optional arguments these will not be considered when looking for duplicates. New arguments will replace previous calls. function sayHi() { console.log('hi'); } ru

Ember.suspendListener()

suspendListener (obj, eventName, target, method, callback) private Defined in packages/ember-metal/lib/events.js:140 Suspend listener during callback. This should only be used by the target of the event listener when it is taking an action that would cause the event, e.g. an object might suspend its property change listener while it is setting that property. Parameters: obj eventName String target Object|Function A target object or a function method Function|String A functio

DS.Adapter#shouldBackgroundReloadAll()

shouldBackgroundReloadAll (store, snapshotRecordArray) Boolean Defined in addon/adapter.js:619 Available since 1.13.0 This method is used by the store to determine if the store should reload a record array after the store.findAll method resolves with a cached record array. This method is only checked by the store when the store is returning a cached record array. If this method returns true the store will re-fetch all records from the adapter. For example, if you do not want to fetch comple

DS.Adapter#findMany()

findMany (store, type, ids, snapshots) Promise Defined in addon/adapter.js:423 The store will call findMany instead of multiple findRecord requests to find multiple records at once if coalesceFindRequests is true. app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ findMany(store, type, ids, snapshots) { return new Ember.RSVP.Promise(function(resolve, reject) { Ember.$.ajax({ type: 'GET', url: `/${type.modelName}/`,