Location#create()

create (options) Objectdeprecatedprivate Defined in packages/ember-routing/lib/location/api.js:147 Use the container to lookup the location implementation that you need. This is deprecated in favor of using the container to lookup the location implementation as desired. For example: // Given a location registered as follows: container.register('location:history-test', HistoryTestLocation); // You could create a new instance via: container.lookup('location:history-test'); Parameters:

Enumerable#findBy()

findBy (key, value) Objectpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:539 Returns the first item with a property matching the passed value. You can pass an optional second argument with the target value. Otherwise this will match any property that evaluates to true. This method works much like the more generic find() method. Parameters: key String the property to test value [String] optional value to test against. Returns: Object found item or `undefined

Helper.helper()

helper (helper) publicstatic Defined in packages/ember-htmlbars/lib/helper.js:109 Available since 1.13.0 In many cases, the ceremony of a full Ember.Helper class is not required. The helper method creates pure-function helpers without instances. For example: // app/helpers/format-currency.js export function formatCurrency([cents], hash) { let currency = hash.currency; return `${currency}${cents * 0.01}`; }); export default Ember.Helper.helper(formatCurrency); // tests/myhelper.js impo

TextArea

Ember.TextArea Class PUBLIC Extends: Ember.Component Uses: Ember.TextSupport Defined in: packages/ember-htmlbars/lib/components/text_area.js:8 Module: ember-views The internal class used to create textarea element when the {{textarea}} helper is used. See Ember.Templates.helpers.textarea for usage details. Layout and LayoutName properties Because HTML textarea elements do not contain inner HTML the layout and layoutName properties will not be applied. See Ember.View's layout section for mo

Templates.helpers.render()

render (name, context, options) Stringpublic Defined in packages/ember-htmlbars/lib/keywords/render.js:14 Calling {{render}} from within a template will insert another template that matches the provided name. The inserted template will access its properties on its own controller (rather than the controller of the parent template). If a view class with the same name exists, the view class also will be used. Note: A given controller may only be used once in your app in this manner. A singleto

Ember.computed.alias()

alias (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:503 Creates a new property that is an alias for another property on an object. Calls to get or set this property behave as though they were called on the original property. let Person = Ember.Object.extend({ name: 'Alex Matchneer', nomen: Ember.computed.alias('name') }); let alex = Person.create(); alex.get('nomen'); // 'Alex Matchneer' alex.get('name'); // 'Alex Matchn

Templates.helpers.each()

eachpublic Defined in packages/ember-htmlbars/lib/helpers/each.js:9 The {{#each}} helper loops over elements in a collection. It is an extension of the base Handlebars {{#each}} helper. The default behavior of {{#each}} is to yield its inner block once for every item in an array passing the item as the first block parameter. var developers = [{ name: 'Yehuda' },{ name: 'Tom' }, { name: 'Paul' }]; {{#each developers key="name" as |person|}} {{person.name}} {{! `this` is whatever it was

Templates.helpers.get()

getpublic Defined in packages/ember-htmlbars/lib/keywords/get.js:105 Available since 2.1.0 Dynamically look up a property on an object. The second argument to {{get}} should have a string value, although it can be bound. For example, these two usages are equivilent: {{person.height}} {{get person "height"}} If there were several facts about a person, the {{get}} helper can dynamically pick one: {{get person factName}} For a more complex example, this template would allow the user to switc

DS.Store#deleteRecord()

deleteRecord (record) Defined in addon/-private/system/store.js:386 For symmetry, a record can be deleted via the store. Example var post = store.createRecord('post', { title: "Rails is omakase" }); store.deleteRecord(post); Parameters: record DS.Model

DS.JSONSerializer#normalizeQueryRecordResponse()

normalizeQueryRecordResponse (store, primaryModelClass, payload, id, requestType) Object Defined in addon/serializers/json.js:276 Available since 1.13.0 Parameters: store DS.Store primaryModelClass DS.Model payload Object id String|Number requestType String Returns: Object JSON-API Document