DS.Store#defaultAdapter

defaultAdapterprivate Defined in addon/-private/system/store.js:269 This property returns the adapter, after resolving a possible string key. If the supplied adapter was a class, or a String property path resolved to a class, this property will instantiate the class. This property is cacheable, so the same instance of a specified adapter class should be used for the lifetime of the store. Returns: DS.Adapter

DS.EmbeddedRecordsMixin#serializeBelongsTo()

serializeBelongsTo (snapshot, json, relationship) Defined in addon/serializers/embedded-records-mixin.js:141 Serialize belongsTo relationship when it is configured as an embedded object. This example of an author model belongs to a post model: Post = DS.Model.extend({ title: DS.attr('string'), body: DS.attr('string'), author: DS.belongsTo('author') }); Author = DS.Model.extend({ name: DS.attr('string'), post: DS.belongsTo('post') }); Use a custom (type) seriali

DefaultResolver#useRouterNaming()

useRouterNaming (parsedName) protected Defined in packages/ember-application/lib/system/resolver.js:286 Given a parseName object (output from parseName), apply the conventions expected by Ember.Router Parameters: parsedName Object a parseName object with the parsed fullName lookup string

MutableArray

Ember.MutableArray Class PUBLIC Uses: Ember.Array Uses: Ember.MutableEnumerable Defined in: packages/ember-runtime/lib/mixins/mutable_array.js:46 Module: ember-runtime This mixin defines the API for modifying array-like objects. These methods can be applied only to a collection that keeps its items in an ordered set. It builds upon the Array mixin and adds methods to modify the array. One concrete implementations of this class include ArrayProxy. It is important to use the methods in this

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

Observable#decrementProperty()

decrementProperty (keyName, decrement) Numberpublic Defined in packages/ember-runtime/lib/mixins/observable.js:453 Set the value of a property to the current value minus some amount. player.decrementProperty('lives'); orc.decrementProperty('health', 5); Parameters: keyName String The name of the property to decrement decrement Number The amount to decrement by. Defaults to 1 Returns: Number The new property value

Route#redirect()

redirect (model, transition) public Defined in packages/ember-routing/lib/system/route.js:1368 A hook you can implement to optionally redirect to another route. If you call this.transitionTo from inside of this hook, this route will not be entered in favor of the other hook. redirect and afterModel behave very similarly and are called almost at the same time, but they have an important distinction in the case that, from one of these hooks, a redirect into a child route of this route occurs:

Test#visit()

visit (url) RSVP.Promisepublic Defined in packages/ember-testing/lib/helpers.js:24 Loads a route, sets up any controllers, and renders any templates associated with the route as though a real user had triggered the route change while using your app. Example: visit('posts/index').then(function() { // assert something }); Parameters: url String the name of the route Returns: RSVP.Promise

Test.QUnitAdapter

Ember.Test.QUnitAdapter Class PUBLIC Extends: Ember.Test.Adapter Defined in: packages/ember-testing/lib/adapters/qunit.js:4 Module: ember This class implements the methods defined by Ember.Test.Adapter for the QUnit testing framework.

ViewTargetActionSupport#nearestWithProperty()

nearestWithProperty (property) deprecatedprivate Defined in packages/ember-views/lib/mixins/view_support.js:44 use yield and contextual components for composition instead. Return the nearest ancestor that has a given property. Parameters: property String A property name Returns: Ember.View