MutableArray#pushObjects()

pushObjects (objects) Ember.Arraypublic Defined in packages/ember-runtime/lib/mixins/mutable_array.js:185 Add the objects in the passed numerable to the end of the array. Defers notifying observers of the change until all objects are added. let colors = ['red']; colors.pushObjects(['yellow', 'orange']); // ['red', 'yellow', 'orange'] Parameters: objects Ember.Enumerable the objects to add Returns: Ember.Array receiver

Transition

Transition Class PRIVATE Defined in: bower_components/router.js/lib/router/transition.js:4 Module: ember A Transition is a thennable (a promise-like object) that represents an attempt to transition to another route. It can be aborted, either explicitly via abort or by attempting another transition while a previous one is still underway. An aborted transition can also be retry()d later.

DS.JSONSerializer#modelNameFromPayloadType()

modelNameFromPayloadType (type) Stringpublic Defined in addon/serializers/json.js:1520 Parameters: type String Returns: String the model's modelName

Route#activate event

activatepublic Defined in packages/ember-routing/lib/system/route.js:695 Available since 1.9.0 This event is triggered when the router enters the route. It is not executed when the model for the route changes. App.ApplicationRoute = Ember.Route.extend({ collectAnalytics: function(){ collectAnalytics(); }.on('activate') });

DS.Adapter#shouldBackgroundReloadAll()

shouldBackgroundReloadAll (store, snapshotRecordArray) Boolean Defined in addon/adapter.js:619 Available since 1.13.0 This method is used by the store to determine if the store should reload a record array after the store.findAll method resolves with a cached record array. This method is only checked by the store when the store is returning a cached record array. If this method returns true the store will re-fetch all records from the adapter. For example, if you do not want to fetch comple

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

Function#property()

propertypublic Defined in packages/ember-runtime/lib/ext/function.js:15 The property extension of Javascript's Function prototype is available when EmberENV.EXTEND_PROTOTYPES or EmberENV.EXTEND_PROTOTYPES.Function is true, which is the default. Computed properties allow you to treat a function like a property: MyApp.President = Ember.Object.extend({ firstName: '', lastName: '', fullName: function() { return this.get('firstName') + ' ' + this.get('lastName'); }.property() // Ca

Quick Start

Quick Start This guide will teach you how to build a simple app using Ember from scratch. We'll cover these steps: Installing Ember. Creating a new application. Defining a route. Writing a UI component. Building your app to be deployed to production. Install Ember You can install Ember with a single command using npm, the Node.js package manager. Type this into your terminal: npm install -g ember-cli Don't have npm? Learn how to install Node.js and npm here. For a full list of dependencies

Enumerable#find()

find (callback, target) Objectpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:482 Returns the first item in the array for which the callback returns true. This method works similar to the filter() method defined in JavaScript 1.6 except that it will stop working on the array once a match is found. The callback method you provide should have the following signature (all parameters are optional): function(item, index, enumerable); item is the current item in the iteration.

Registry#describe()

describe (fullName) Stringprivate Defined in packages/container/lib/registry.js:262 A hook that can be used to describe how the resolver will attempt to find the factory. For example, the default Ember .describe returns the full class name (including namespace) where Ember's resolver expects to find the fullName. Parameters: fullName String Returns: String described fullName