DS.String

DS.String Class Module: ember-data

Helper#compute()

compute (params, hash) public Defined in packages/ember-htmlbars/lib/helper.js:94 Available since 1.13.0 Override this function when writing a class-based helper. Parameters: params Array The positional arguments to the helper hash Object The named arguments to the helper

Ember.computed.min()

min (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:123 A computed property that calculates the minimum value in the dependent array. This will return Infinity when the dependent array is empty. let Person = Ember.Object.extend({ childAges: Ember.computed.mapBy('children', 'age'), minChildAge: Ember.computed.min('childAges') }); let lordByron = Person.create({ children: [] }); lordByron.get('minChildAge'); // Infinit

Ember.trySet()

trySet (root, path, value) public Defined in packages/ember-metal/lib/property_set.js:130 Error-tolerant form of Ember.set. Will not blow up if any part of the chain is undefined, null, or destroyed. This is primarily used when syncing bindings, which may try to update after an object has been destroyed. Parameters: root Object The object to modify. path String The property path to set value Object The value to set

Acceptance Tests

Acceptance Tests To create an acceptance test, run ember generate acceptance-test <name>. For example: ember g acceptance-test login This generates this file: tests/acceptance/login-test.js import { test } from 'qunit'; import moduleForAcceptance from 'people/tests/helpers/module-for-acceptance'; moduleForAcceptance('Acceptance | login'); test('visiting /login', function(assert) { visit('/login'); andThen(function() { assert.equal(currentURL(), '/login'); }); }); moduleFo

Inflector#purgedCache()

purgedCachepublic Defined in node_modules/ember-inflector/addon/lib/system/inflector.js:143

RSVP.allSettled()

allSettled (entries, label) Promisestatic Defined in bower_components/rsvp/lib/rsvp/all-settled.js:19 RSVP.allSettled is similar to RSVP.all, but instead of implementing a fail-fast method, it waits until all the promises have returned and shows you all the results. This is useful if you want to handle multiple promises' failure states together as a set. Returns a promise that is fulfilled when all the given promises have been settled. The return promise is fulfilled with an array of the st

DS.Errors#isEmpty

isEmpty{Boolean} Defined in addon/-private/system/model/errors.js:202

DS.Errors#_findOrCreateMessages()

_findOrCreateMessagesprivate Defined in addon/-private/system/model/errors.js:255

Route#store()

store (store) private Defined in packages/ember-routing/lib/system/route.js:1531 Store property provides a hook for data persistence libraries to inject themselves. By default, this store property provides the exact same functionality previously in the model hook. Currently, the required interface is: store.find(modelName, findArguments) Parameters: store Object