DS.Model#isValid

isValid{Boolean} Defined in addon/-private/system/model/model.js:211 If this property is true the record is in the valid state. A record will be in the valid state when the adapter did not report any server-side validation failures.

DS.BuildURLMixin#urlForQuery()

urlForQuery (query, modelName) String Defined in addon/-private/adapters/build-url-mixin.js:161 Builds a URL for a store.query(type, query) call. Example: app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ host: 'https://api.github.com', urlForQuery (query, modelName) { switch(modelName) { case 'repo': return `https://api.github.com/orgs/${query.orgId}/repos`; default: return this._super(...arguments); }

Ember.guidFor()

guidFor (obj) Stringpublic Defined in packages/ember-metal/lib/utils.js:167 Returns a unique id for the object. If the object does not yet have a guid, one will be assigned to it. You can call this on any object, Ember.Object-based or not, but be aware that it will add a _guid property. You can also use this method on DOM Element objects. Parameters: obj Object any object, string, number, Element, or primitive Returns: String the unique guid for this instance.

Route#model()

model (params, transition) Object|Promisepublic Defined in packages/ember-routing/lib/system/route.js:1405 A hook you can implement to convert the URL into the model for this route. App.Router.map(function() { this.route('post', { path: '/posts/:post_id' }); }); The model for the post route is store.findRecord('post', params.post_id). By default, if your route has a dynamic segment ending in _id: The model class is determined from the segment (post_id's class is App.Post) The find method

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');

Built-in Helpers

Built-in Helpers Built-in Helpers In the last section you learned how to write a helper. A helper is usually a simple function that can be used in any template. Ember comes with a few helpers that can make developing your templates a bit easier. These helpers can allow you to be more dynamic in passing data to another helper or component. Using a helper to get a property dynamically The {{get}} helper makes it easy to dynamically send the value of a variable to another helper or component. Th

DS.RecordArrayManager#createAdapterPopulatedRecordArray()

createAdapterPopulatedRecordArray (typeClass, query) DS.AdapterPopulatedRecordArray Defined in addon/-private/system/record-array-manager.js:287 Create a DS.AdapterPopulatedRecordArray for a type with given query. Parameters: typeClass DS.Model query Object Returns: DS.AdapterPopulatedRecordArray

ApplicationInstance.BootOptions#isBrowser

isBrowserbooleanpublic Defined in packages/ember-application/lib/system/application-instance.js:340 Run in a full browser environment. When this flag is set to false, it will disable most browser-specific and interactive features. Specifically: It does not use jQuery to append the root view; the rootElement (either specified as a subsequent option or on the application itself) must already be an Element in the given document (as opposed to a string selector). It does not set up an EventDisp

ApplicationInstance.BootOptions#isInteractive

isInteractivebooleanprivate Defined in packages/ember-application/lib/system/application-instance.js:329 Interactive mode: whether we need to set up event delegation and invoke lifecycle callbacks on Components. Default: auto-detected

DS.Model.typeForRelationship()

typeForRelationship (name, store) DS.Modelstatic Defined in addon/-private/system/relationships/ext.js:161 For a given relationship name, returns the model type of the relationship. For example, if you define a model like this: app/models/post.js import DS from 'ember-data'; export default DS.Model.extend({ comments: DS.hasMany('comment') }); Calling App.Post.typeForRelationship('comments') will return App.Comment. Parameters: name String the name of the relationship store Store