Ember.inject.service()

service (name) Ember.InjectedPropertypublic Defined in packages/ember-runtime/lib/system/service.js:5 Available since 1.10.0 Creates a property that lazily looks up a service in the container. There are no restrictions as to what objects a service can be injected into. Example: App.ApplicationRoute = Ember.Route.extend({ authManager: Ember.inject.service('auth'), model: function() { return this.get('authManager').findCurrentUser(); } }); This example will create an authManager p

Inflector

Ember.Inflector Class Defined in: node_modules/ember-inflector/addon/lib/system/inflector.js:32 Module: ember-data Inflector.Ember provides a mechanism for supplying inflection rules for your application. Ember includes a default set of inflection rules, and provides an API for providing additional rules. Examples: Creating an inflector with no rules. var inflector = new Ember.Inflector(); Creating an inflector with the default ember ruleset. var inflector = new Ember.Inflector(Ember.Infl

CoreObject#init()

initpublic Defined in packages/ember-runtime/lib/system/core_object.js:217 An overridable method called when objects are instantiated. By default, does nothing unless it is overridden during class definition. Example: App.Person = Ember.Object.extend({ init: function() { alert('Name is ' + this.get('name')); } }); var steve = App.Person.create({ name: "Steve" }); // alerts 'Name is Steve'. NOTE: If you do override init for a framework class like Ember.View, be sure to call this

DS.Model#resetAttribute()

resetAttribute Defined in addon/-private/system/model/model.js:1036 Discards any unsaved changes to the given attribute. Example record.get('name'); // 'Untitled Document' record.set('name', 'Doc 1'); record.get('name'); // 'Doc 1' record.resetAttribute('name'); record.get('name'); // 'Untitled Document'

DS.Adapter#updateRecord()

updateRecord (store, type, snapshot) Promise Defined in addon/adapter.js:322 Implement this method in a subclass to handle the updating of a record. Serializes the record update and sends it to the server. The updateRecord method is expected to return a promise that will resolve with the serialized record. This allows the backend to inform the Ember Data store the current state of this record after the update. If it is not possible to return a serialized record the updateRecord promise can

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

ember-extension-support

ember-extension-support Module Parent: ember The ContainerDebugAdapter helps the container and resolver interface with tools that debug Ember such as the Ember Extension for Chrome and Firefox. This class can be extended by a custom resolver implementer to override some of the methods with library-specific code. The methods likely to be overridden are: canCatalogEntriesByType catalogEntriesByType The adapter will need to be registered in the application's container as container-debug-adapter:

DataAdapter#getFilters()

getFiltersArraypublic Defined in packages/ember-extension-support/lib/data_adapter.js:115 Specifies how records can be filtered. Records returned will need to have a filterValues property with a key for every name in the returned array. Returns: Array List of objects defining filters. The object should have a `name` and `desc` property.

DS.Store#typeMapFor()

typeMapFor (typeClass) Objectprivate Defined in addon/-private/system/store.js:1831 Returns a map of IDs to client IDs for a given type. Parameters: typeClass DS.Model Returns: Object typeMap

Test.Adapter

Ember.Test.Adapter Class PUBLIC Defined in: packages/ember-testing/lib/adapters/adapter.js:10 Module: ember-testing The primary purpose of this class is to create hooks that can be implemented by an adapter for various test frameworks.