Ember.copy()

copy (obj, deep) Objectpublic Defined in packages/ember-runtime/lib/copy.js:66 Creates a shallow copy of the passed object. A deep copy of the object is returned if the optional deep argument is true. If the passed object implements the Ember.Copyable interface, then this function will delegate to the object's copy() method and return the result. See Ember.Copyable for further details. For primitive values (which are immutable in JavaScript), the passed object is simply returned. Paramete

Ember.defineProperty()

defineProperty (obj, keyName, desc, data) private Defined in packages/ember-metal/lib/properties.js:84 NOTE: This is a low-level method used by other parts of the API. You almost never want to call this method directly. Instead you should use Ember.mixin() to define new properties. Defines a property on an object. This method works much like the ES5 Object.defineProperty() method except that it can also accept computed properties and other special descriptors. Normally this method takes onl

Test#currentURL()

currentURLObjectpublic Defined in packages/ember-testing/lib/helpers.js:187 Available since 1.5.0 Returns the current URL. Example: function validateURL() { equal(currentURL(), '/some/path', "correct URL was transitioned into."); } click('#some-link-id').then(validateURL); Returns: Object The currently active URL.

DS.Adapter#query()

query (store, type, query, recordArray) Promise Defined in addon/adapter.js:154 This method is called when you call query on the store. Example app/adapters/application.js import DS from 'ember-data'; export default DS.Adapter.extend({ query: function(store, type, query) { return new Ember.RSVP.Promise(function(resolve, reject) { Ember.$.getJSON(`/${type.modelName}`, query).then(function(data) { resolve(data); }, function(jqXHR) { reject(jqXHR); });

Observable#endPropertyChanges()

endPropertyChangesEmber.Observableprivate Defined in packages/ember-runtime/lib/mixins/observable.js:251 Ends a grouping of property changes. You can use this method to group property changes so that notifications will not be sent until the changes are finished. If you plan to make a large number of changes to an object at one time, you should call beginPropertyChanges() at the beginning of the changes to defer change notifications. When you are done making changes, call this method to deli

Transition#finally()

finally (callback, label) Promisepublic Defined in bower_components/router.js/lib/router/transition.js:172 Forwards to the internal promise property which you can use in situations where you want to pass around a thennable, but not the Transition itself. Parameters: callback Function label String optional string for labeling the promise. Useful for tooling. Returns: Promise

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

Registry#normalize()

normalize (fullName) Stringprivate Defined in packages/container/lib/registry.js:303 Normalize a fullName based on the application's conventions Parameters: fullName String Returns: String normalized fullName

DS.BooleanTransform

DS.BooleanTransform Class Extends: DS.Transform Defined in: addon/-private/transforms/boolean.js:7 Module: ember-data The DS.BooleanTransform class is used to serialize and deserialize boolean attributes on Ember Data record objects. This transform is used when boolean is passed as the type parameter to the DS.attr function. Usage app/models/user.js import DS from 'ember-data'; export default DS.Model.extend({ isAdmin: DS.attr('boolean'), name: DS.attr('string'), email: DS.attr('str

Ember.removeListener()

removeListener (obj, eventName, target, method) public Defined in packages/ember-metal/lib/events.js:112 Remove an event listener Arguments should match those passed to Ember.addListener. Parameters: obj eventName String target Object|Function A target object or a function method Function|String A function or the name of a function to be called on `target`