Ember.computed.intersect()

intersect (propertyKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:438 A computed property which returns a new array with all the duplicated elements from two or more dependent arrays. Example let obj = Ember.Object.extend({ friendsInCommon: Ember.computed.intersect('adaFriends', 'charlesFriends') }).create({ adaFriends: ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'], charlesFriends: ['William King', '

Troubleshooting

Troubleshooting Below are some common issues you may encounter when using the Inspector, along with the necessary steps to solve them. If your issue is not listed below, please submit an issue to the Inspector's GitHub repo. Ember Application Not Detected If the Inspector cannot detect an Ember application, you will see the following message: Some of the reasons this may happen: This is not an Ember application You are using an old Ember version ( < 1.0 ). You are using a protocol other t

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.

Ember._immediateObserver()

_immediateObserver (propertyNames, func) deprecatedprivate Defined in packages/ember-metal/lib/mixin.js:755 Use Ember.observer instead. Specify a method that observes property changes. Ember.Object.extend({ valueObserver: Ember.immediateObserver('value', function() { // Executes whenever the "value" property changes }) }); In the future, Ember.observer may become asynchronous. In this event, Ember.immediateObserver will maintain the synchronous behavior. Also available as Functio

ember

ember Module

DS.RESTSerializer#payloadTypeFromModelName()

payloadTypeFromModelName (modelname) Stringpublic Defined in addon/serializers/rest.js:910 payloadTypeFromModelName can be used to change the mapping for the type in the payload, taken from the model name. Say your API namespaces the type of a model and expects the following payload when you update the post model, which has a polymorphic user relationship: // POST /api/posts/1 { "post": { "id": 1, "user": 1, "userType": "api::v1::administrator" } } By overwriting payloadTyp

ContainerProxyMixin#lookup()

lookup (fullName, options) Anypublic Defined in packages/ember-runtime/lib/mixins/container_proxy.js:49 Given a fullName return a corresponding instance. The default behaviour is for lookup to return a singleton instance. The singleton is scoped to the container, allowing multiple containers to all have their own locally scoped singletons. let registry = new Registry(); let container = registry.container(); registry.register('api:twitter', Twitter); let twitter = container.lookup('api:twi

ApplicationInstance.BootOptions#document

documentDocumentpublic Defined in packages/ember-application/lib/system/application-instance.js:399 If present, render into the given Document object instead of the global window.document object. In practice, this is only useful in non-browser environment or in non-interactive mode, because Ember's jQuery dependency is implicitly bound to the current document, causing event delegation to not work properly when the app is rendered into a foreign document object (such as an iframe's contentDo

DS#hasMany()

hasMany (type, options) Ember.computed Defined in addon/-private/system/relationships/has-many.js:11 DS.hasMany is used to define One-To-Many and Many-To-Many relationships on a DS.Model. DS.hasMany takes an optional hash as a second parameter, currently supported options are: async: A boolean value used to explicitly declare this to be an async relationship. inverse: A string used to identify the inverse property on a related model. One-To-Many To declare a one-to-many relationship betwe

DataAdapter#wrapRecord()

wrapRecord (record) Objectprivate Defined in packages/ember-extension-support/lib/data_adapter.js:414 Wraps a record and observers changes to it. Parameters: record Object The record instance. Returns: Object The wrapped record. Format: columnValues: {Array} searchKeywords: {Array}