DS.RESTAdapter#namespace

namespace{String} Defined in addon/adapters/rest.js:349 Endpoint paths can be prefixed with a namespace by setting the namespace property on the adapter: app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ namespace: 'api/1' }); Requests for the Post model would now target /api/1/post/.

Observable#setProperties()

setProperties (hash) Objectpublic Defined in packages/ember-runtime/lib/mixins/observable.js:213 Sets a list of properties at once. These properties are set inside a single beginPropertyChanges and endPropertyChanges batch, so observers will be buffered. record.setProperties({ firstName: 'Charles', lastName: 'Jolley' }); Parameters: hash Object the hash of keys and values to set Returns: Object The passed in hash

LinkComponent#loadingClass

loadingClassStringprivate Defined in packages/ember-htmlbars/lib/components/link-to.js:412 The CSS class to apply to LinkComponent's element when its loading property is true. Default: loading

Engine#initializer()

initializer (initializer) public Inherited from Ember.Engine but overwritten in packages/ember-application/lib/system/engine.js:185 The goal of initializers should be to register dependencies and injections. This phase runs once. Because these initializers may load code, they are allowed to defer application readiness and advance it. If you need to access the container or store you should use an InstanceInitializer that will be run after all initializers and therefore after all code is load

Registry#injection()

injection (factoryName, property, injectionName) private Defined in packages/container/lib/registry.js:488 Defines injection rules. These rules are used to inject dependencies onto objects when they are instantiated. Two forms of injections are possible: Injecting one fullName on another fullName Injecting one fullName on a type Example: let registry = new Registry(); let container = registry.container(); registry.register('source:main', Source); registry.register('model:user', User); regi

Ember.makeArray()

makeArray (obj) Arrayprivate Defined in packages/ember-metal/lib/utils.js:370 Forces the passed object to be part of an array. If the object is already an array, it will return the object. Otherwise, it will add the object to an array. If obj is null or undefined, it will return an empty array. Ember.makeArray(); // [] Ember.makeArray(null); // [] Ember.makeArray(undefined); // [] Ember.makeArray('lindsay'); // ['lindsay'] Ember.makeArray([1, 2, 42]); // [1, 2, 42] l

Engine.buildRegistry()

buildRegistry (namespace) Ember.Registryprivatestatic Inherited from Ember.Engine but overwritten in packages/ember-application/lib/system/engine.js:370 This creates a registry with the default Ember naming conventions. It also configures the registry: registered views are created every time they are looked up (they are not singletons) registered templates are not factories; the registered value is returned directly. the router receives the application as its namespace property all controll

DS.JSONSerializer#attrs

attrs{Object} Defined in addon/serializers/json.js:111 The attrs object can be used to declare a simple mapping between property names on DS.Model records and payload keys in the serialized JSON object representing the record. An object with the property key can also be used to designate the attribute's key on the response payload. Example app/models/person.js import DS from 'ember-data'; export default DS.Model.extend({ firstName: DS.attr('string'), lastName: DS.attr('string'), occu

DS.RESTAdapter#groupRecordsForFindMany()

groupRecordsForFindMany (store, snapshots) Array Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:822 Organize records into groups, each of which is to be passed to separate calls to findMany. This implementation groups together records that have the same base URL but differing ids. For example /comments/1 and /comments/2 will be grouped together because we know findMany can coalesce them together as /comments?ids[]=1&ids[]=2 It also supports urls where ids are passed

DS.RESTAdapter#host

host{String} Defined in addon/adapters/rest.js:367 An adapter can target other hosts by setting the host property. app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ host: 'https://api.example.com' }); Requests for the Post model would now target https://api.example.com/post/.