HistoryLocation#getURL()

getURLStringprivate Defined in packages/ember-routing/lib/location/history_location.js:59 Returns the current location.pathname without rootURL or baseURL Returns: String url

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.

Objects in Ember

Objects in Ember You'll notice standard JavaScript class patterns and the new ES2015 classes aren't widely used in Ember. Plain objects can still be found, and sometimes they're referred to as "hashes". JavaScript objects don't support the observation of property value changes. Consequently, if an object is going to participate in Ember's binding system you may see an Ember.Object instead of a plain object. Ember.Object also provides a class system, supporting features like mixins and constru

Ember.streams.Ember.stream.chain()

chain (value, fn) Object|Streamprivate Defined in packages/ember-htmlbars/lib/streams/utils.js:271 Generate a new stream by providing a source stream and a function that can be used to transform the stream's value. In the case of a non-stream object, returns the result of the function. The value to transform would typically be available to the function you pass to chain() via scope. For example: let source = ...; // stream returning a number // or a numeric (

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/.

String#underscore()

underscore (str) Stringpublic Defined in packages/ember-runtime/lib/system/string.js:300 More general than decamelize. Returns the lower_case_and_underscored form of a string. 'innerHTML'.underscore(); // 'inner_html' 'action_name'.underscore(); // 'action_name' 'css-class-name'.underscore(); // 'css_class_name' 'my favorite items'.underscore(); // 'my_favorite_items' 'privateDocs/ownerInvoice'.underscore(); // 'private_docs/owner_invoice' Parameters: str String T

ViewTargetActionSupport#renderToElement()

renderToElement (tagName) HTMLBodyElementprivate Defined in packages/ember-views/lib/mixins/view_support.js:153 Creates a new DOM element, renders the view into it, then returns the element. By default, the element created and rendered into will be a BODY element, since this is the default context that views are rendered into when being inserted directly into the DOM. let element = view.renderToElement(); element.tagName; // => "BODY" You can override the kind of element rendered into a

DS.RESTSerializer#keyForPolymorphicType()

keyForPolymorphicType (key, typeClass, method) String Defined in addon/serializers/rest.js:60 keyForPolymorphicType can be used to define a custom key when serializing and deserializing a polymorphic type. By default, the returned key is ${key}Type. Example app/serializers/post.js import DS from 'ember-data'; export default DS.RESTSerializer.extend({ keyForPolymorphicType: function(key, relationship) { var relationshipKey = this.keyForRelationship(key); return 'type-' + rel

Ember.computed.none()

none (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:118 A computed property that returns true if the value of the dependent property is null or undefined. This avoids errors from JSLint complaining about use of ==, which can be technically confusing. Example let Hamster = Ember.Object.extend({ isHungry: Ember.computed.none('food') }); let hamster = Hamster.create(); hamster.get('isHungry'); // true hamster.set('food', 'Banan

DS.Snapshot#serialize()

serialize (options) Object Defined in addon/-private/system/snapshot.js:350 Parameters: options Object Returns: Object an object whose values are primitive JSON values only