Templates.helpers.if()

ifpublic Defined in packages/ember-htmlbars/lib/helpers/if_unless.js:9 Use the if block helper to conditionally render a block depending on a property. If the property is "falsey", for example: false, undefined, null, "", 0, NaN or an empty array, the block will not be rendered. {{! will not render if foo is falsey}} {{#if foo}} Welcome to the {{foo.bar}} {{/if}} You can also specify a template to show if the property is falsey by using the else helper. {{! is it raining outside?}} {{#if

Test#registerAsyncHelper()

registerAsyncHelper (name, helperMethod) public Defined in packages/ember-testing/lib/test/helpers.js:43 Available since 1.2.0 registerAsyncHelper is used to register an async test helper that will be injected when App.injectTestHelpers is called. The helper method will always be called with the current Application as the first parameter. For example: Ember.Test.registerAsyncHelper('boot', function(app) { Ember.run(app, app.advanceReadiness); }); The advantage of an async helper is that

DS.RESTAdapter#_requestToJQueryAjaxHash()

_requestToJQueryAjaxHash (request) Objectprivate Defined in addon/adapters/rest.js:1344 Convert a request object into a hash which can be passed to jQuery.ajax. Parameters: request Object Returns: Object jQuery ajax hash

Freezable

Ember.Freezable Class DEPRECATED PRIVATE Defined in: packages/ember-runtime/lib/mixins/freezable.js:11 Module: ember-runtime The Ember.Freezable mixin implements some basic methods for marking an object as frozen. Once an object is frozen it should be read only. No changes may be made the internal state of the object. Enforcement To fully support freezing in your subclass, you must include this mixin and override any method that might alter any property on the object to instead raise an ex

DS.Model.relationships

relationshipsEmber.Mapstatic Defined in addon/-private/system/relationships/ext.js:325 The model's relationships as a map, keyed on the type of the relationship. The value of each entry is an array containing a descriptor for each relationship with that type, describing the name of the relationship as well as the type. For example, given the following model definition: app/models/blog.js import DS from 'ember-data'; export default DS.Model.extend({ users: DS.hasMany('user'), owner: DS.

MutableArray#setObjects()

setObjects (objects) Ember.Arraypublic Defined in packages/ember-runtime/lib/mixins/mutable_array.js:320 Replace all the receiver's content with content of the argument. If argument is an empty array receiver will be cleared. let colors = ['red', 'green', 'blue']; colors.setObjects(['black', 'white']); // ['black', 'white'] colors.setObjects([]); // [] Parameters: objects Ember.Array array whose content will be used for replacing the content of the receiver Retur

RegistryProxyMixin#unregister()

unregister (fullName) public Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:90 Unregister a factory. let App = Ember.Application.create(); let User = Ember.Object.extend(); App.register('model:user', User); App.resolveRegistration('model:user').create() instanceof User //=> true App.unregister('model:user') App.resolveRegistration('model:user') === undefined //=> true Parameters: fullName String

DS.JSONAPIAdapter

DS.JSONAPIAdapter Class Extends: DS.RESTAdapter Defined in: addon/adapters/json-api.js:11 Module: ember-data

ComputedProperty#volatile()

volatileEmber.ComputedPropertypublic Defined in packages/ember-metal/lib/computed.js:165 Call on a computed property to set it into non-cached mode. When in this mode the computed property will not automatically cache the return value. It also does not automatically fire any change events. You must manually notify any changes if you want to observe this property. Dependency keys have no effect on volatile properties as they are for cache invalidation and notification when cached value is in

DefaultResolver#parseName()

parseName (fullName) protected Defined in packages/ember-application/lib/system/resolver.js:197 Convert the string name of the form 'type:name' to a Javascript object with the parsed aspects of the name broken out. Parameters: fullName String the lookup string