DS.Model#isLoaded

isLoaded{Boolean} Defined in addon/-private/system/model/model.js:79 If this property is true the record is in the loaded state. A record enters this state when its data is populated. Most of a record's lifecycle is spent inside substates of the loaded state. Example var record = store.createRecord('model'); record.get('isLoaded'); // true store.findRecord('model', 1).then(function(model) { model.get('isLoaded'); // true });

DS.RESTAdapter#methodForRequest()

methodForRequest (params) Stringpublic Defined in addon/adapters/rest.js:1254 Get the HTTP method for a request. Parameters: params Object Returns: String HTTP method

Route#error event

error (error, transition) public Defined in packages/ember-routing/lib/system/route.js:640 When attempting to transition into a route, any of the hooks may return a promise that rejects, at which point an error action will be fired on the partially-entered routes, allowing for per-route error handling logic, or shared error handling logic defined on a parent route. Here is an example of an error handler that will be invoked for rejected promises from the various hooks on the route, as well

Router#isActive()

isActive (routeName) Booleanprivate Defined in packages/ember-routing/lib/system/router.js:399 Determines if the supplied route is currently active. Parameters: routeName Returns: Boolean

DS.JSONSerializer#shouldSerializeHasMany()

shouldSerializeHasMany (snapshot, key, relationshipType) Boolean Defined in addon/serializers/json.js:857 Check if the given hasMany relationship should be serialized Parameters: snapshot DS.Snapshot key String relationshipType String Returns: Boolean true if the hasMany relationship should be serialized

Ember.assert()

assert (desc, test) public Defined in packages/ember-debug/lib/index.js:33 Define an assertion that will throw an exception if the condition is not met. In a production build, this method is defined as an empty function (NOP). Uses of this method in Ember itself are stripped from the ember.prod.js build. // Test for truthiness Ember.assert('Must pass a valid object', obj); // Fail unconditionally Ember.assert('This code path should never be run'); Parameters: desc String A descriptio

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

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

DefaultResolver#lookupDescription()

lookupDescription (fullName) protected Defined in packages/ember-application/lib/system/resolver.js:255 Returns a human-readable description for a fullName. Used by the Application namespace in assertions to describe the precise name of the class that Ember is looking for, rather than container keys. Parameters: fullName String the lookup string

Configuring Your App

Configuring Your App Ember CLI ships with support for managing your application's environment. Ember CLI will setup a default environment config file at config/environment. Here, you can define an ENV object for each environment, which are currently limited to three: development, test, and production. The ENV object contains three important keys: EmberENV can be used to define Ember feature flags (see the Feature Flags guide). APP can be used to pass flags/options to your application instan