DS.Errors#remove()

remove (attribute) deprecated Defined in addon/-private/system/model/errors.js:280 Removes all error messages from the given attribute and sends becameValid event to the record if there no more errors left. Example: app/models/user.js import DS from 'ember-data'; export default DS.Model.extend({ email: DS.attr('string'), twoFactorAuth: DS.attr('boolean'), phone: DS.attr('string') }); app/routes/user/edit.js import Ember from 'ember'; export default Ember.Route.extend({ actions: {

Route#serializeQueryParamKey()

serializeQueryParamKey (controllerPropertyName) private Defined in packages/ember-routing/lib/system/route.js:379 Serializes the query parameter key Parameters: controllerPropertyName String

DS.Model#isValid

isValid{Boolean} Defined in addon/-private/system/model/model.js:211 If this property is true the record is in the valid state. A record will be in the valid state when the adapter did not report any server-side validation failures.

Component#init()

initprivate Inherited from Ember.CoreObject but overwritten in packages/ember-views/lib/mixins/view_support.js:388 Setup a view, but do not finish waking it up. configure childViews register the view with the global views hash, which is used for event dispatch

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