DS.FilteredRecordArray#filterFunction()

filterFunction (record) Boolean Defined in addon/-private/system/record-arrays/filtered-record-array.js:21 The filterFunction is a function used to test records from the store to determine if they should be part of the record array. Example var allPeople = store.peekAll('person'); allPeople.mapBy('name'); // ["Tom Dale", "Yehuda Katz", "Trek Glowacki"] var people = store.filter('person', function(person) { if (person.get('name').match(/Katz$/)) { return true; } }); people.mapBy('name');

DS.Model#destroyRecord()

destroyRecord (options) Promise Defined in addon/-private/system/model/model.js:532 Same as deleteRecord, but saves the record immediately. Example app/routes/model/delete.js import Ember from 'ember'; export default Ember.Route.extend({ actions: { delete: function() { var controller = this.controller; controller.get('model').destroyRecord().then(function() { controller.transitionToRoute('model.index'); }); } } }); If you pass an object on the adapter

ember-htmlbars

ember-htmlbars Module Parent: ember HTMLBars is a Handlebars compatible templating engine used by Ember.js. The classes and namespaces covered by this documentation attempt to focus on APIs for interacting with HTMLBars itself. For more general guidance on Ember.js templates and helpers, please see the ember-templates package.

TargetActionSupport#triggerAction()

triggerAction (opts) Booleanprivate Defined in packages/ember-runtime/lib/mixins/target_action_support.js:44 Send an action with an actionContext to a target. The action, actionContext and target will be retrieved from properties of the object. For example: App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, { target: Ember.computed.alias('controller'), action: 'save', actionContext: Ember.computed.alias('context'), click() { this.triggerAction(); // Sends the `sav

String.isHTMLSafe()

isHTMLSafeBooleanpublicstatic Defined in packages/ember-htmlbars/lib/utils/string.js:101 Detects if a string was decorated using Ember.String.htmlSafe. var plainString = 'plain string', safeString = Ember.String.htmlSafe('<div>someValue</div>'); Ember.String.isHTMLSafe(plainString); // false Ember.String.isHTMLSafe(safeString); // true Returns: Boolean `true` if the string was decorated with `htmlSafe`, `false` otherwise.

HTMLBars#makeBoundHelper()

makeBoundHelper (fn) private Defined in packages/ember-htmlbars/lib/make-bound-helper.js:8 Available since 1.10.0 Create a bound helper. Accepts a function that receives the ordered and hash parameters from the template. If a bound property was provided in the template, it will be resolved to its value and any changes to the bound property cause the helper function to be re-run with the updated values. params - An array of resolved ordered parameters. hash - An object containing the hash

Tackling Deprecations

Tackling Deprecations As part of making your app upgrades as smooth as possible, the Inspector gathers your deprecations, groups them, and displays them in a way that helps you fix them. To view the list of deprecations in an app, click on the Deprecations menu. You can see the total number of deprecations next to the Deprecations menu. You can also see the number of occurrences for each deprecation. Ember CLI Deprecation Sources If you are using Ember CLI and have source maps enabled, you c

HTMLBars.helpers.singularize()

singularize (word) Defined in node_modules/ember-inflector/addon/lib/helpers/singularize.js:4 If you have Ember Inflector (such as if Ember Data is present), singularize a word. For example, turn "oxen" into "ox". Example: {{singularize myProperty}} {{singularize "oxen"}} Parameters: word String|Property word to singularize

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.

DS.BuildURLMixin#urlPrefix()

urlPrefix (path, parentURL) Stringprivate Defined in addon/-private/adapters/build-url-mixin.js:373 Parameters: path String parentURL String Returns: String urlPrefix