DS.RESTAdapter#query()

query (store, type, query) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:475 Called by the store in order to fetch a JSON array for the records that match a particular query. The query method makes an Ajax (HTTP GET) request to a URL computed by buildURL, and returns a promise for the resulting payload. The query argument is a simple JavaScript object that will be passed directly to the server as parameters. Parameters: store DS.Store type DS.Model que

OrderedSet#clear()

clearprivate Defined in packages/ember-metal/lib/map.js:89

Application#reset()

resetpublic Defined in packages/ember-application/lib/system/application.js:609 Reset the application. This is typically used only in tests. It cleans up the application in the following order: Deactivate existing routes Destroy all objects in the container Create a new application container Re-route to the existing url Typical Example: let App; run(function() { App = Ember.Application.create(); }); module('acceptance test', { setup: function() { App.reset(); } }); test('first

String#loc()

loc (str, formats) Stringpublic Defined in packages/ember-runtime/lib/system/string.js:179 Formats the passed string, but first looks up the string in the localized strings hash. This is a convenient way to localize text. See Ember.String.fmt() for more information on formatting. Note that it is traditional but not required to prefix localized string keys with an underscore or other character so you can easily identify localized strings. Ember.STRINGS = { '_Hello World': 'Bonjour le monde

String.htmlSafe()

htmlSafeHandlebars.SafeStringpublicstatic Defined in packages/ember-htmlbars/lib/utils/string.js:77 Mark a string as safe for unescaped output with Ember templates. If you return HTML from a helper, use this function to ensure Ember's rendering layer does not escape the HTML. Ember.String.htmlSafe('<div>someString</div>') Returns: Handlebars.SafeString A string that will not be HTML escaped by Handlebars.

DS.Adapter#shouldReloadAll()

shouldReloadAll (store, snapshotRecordArray) Boolean Defined in addon/adapter.js:527 Available since 1.13.0 This method is used by the store to determine if the store should reload all records from the adapter when records are requested by store.findAll. If this method returns true, the store will re-fetch all records from the adapter. If this method returns false, the store will resolve immediately using the cached records. For example, if you are building an events ticketing system, in wh

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

DS.Model#deleteRecord()

deleteRecord Defined in addon/-private/system/model/model.js:500 Marks the record as deleted but does not save it. You must call save afterwards if you want to persist it. You might use this method if you want to allow the user to still rollbackAttributes() after a delete it was made. Example app/routes/model/delete.js import Ember from 'ember'; export default Ember.Route.extend({ actions: { softDelete: function() { this.controller.get('model').deleteRecord(); }, confirm

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

ActionHandler#send()

send (actionName, context) public Defined in packages/ember-runtime/lib/mixins/action_handler.js:145 Triggers a named action on the ActionHandler. Any parameters supplied after the actionName string will be passed as arguments to the action target function. If the ActionHandler has its target property set, actions may bubble to the target. Bubbling happens when an actionName can not be found in the ActionHandler's actions hash or if the action target function returns true. Example App.Welco