TargetActionSupport#triggerAction()

triggerAction (opts) Booleanprivate Defined in packages/ember-runtime/lib/mixins/target_action_support.js:44 Send an action with an actionContext to a target. The action, actionContext and target will be retrieved from properties of the object. For example: App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, { target: Ember.computed.alias('controller'), action: 'save', actionContext: Ember.computed.alias('context'), click() { this.triggerAction(); // Sends the `sav

TargetActionSupport

Ember.TargetActionSupport Class PRIVATE Extends: Ember.Mixin Defined in: packages/ember-runtime/lib/mixins/target_action_support.js:12 Module: ember-runtime Ember.TargetActionSupport is a mixin that can be included in a class to add a triggerAction method with semantics similar to the Handlebars {{action}} helper. In normal Ember usage, the {{action}} helper is usually the best choice. This mixin is most often useful when you are doing more complex event handling in View objects. See also

Tackling Deprecations

Tackling Deprecations As part of making your app upgrades as smooth as possible, the Inspector gathers your deprecations, groups them, and displays them in a way that helps you fix them. To view the list of deprecations in an app, click on the Deprecations menu. You can see the total number of deprecations next to the Deprecations menu. You can also see the number of occurrences for each deprecation. Ember CLI Deprecation Sources If you are using Ember CLI and have source maps enabled, you c

String.isHTMLSafe()

isHTMLSafeBooleanpublicstatic Defined in packages/ember-htmlbars/lib/utils/string.js:101 Detects if a string was decorated using Ember.String.htmlSafe. var plainString = 'plain string', safeString = Ember.String.htmlSafe('<div>someValue</div>'); Ember.String.isHTMLSafe(plainString); // false Ember.String.isHTMLSafe(safeString); // true Returns: Boolean `true` if the string was decorated with `htmlSafe`, `false` otherwise.

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.

String#w()

w (str) Arraypublic Defined in packages/ember-runtime/lib/system/string.js:206 Splits a string into separate units separated by spaces, eliminating any empty strings in the process. This is a convenience method for split that is mostly useful when applied to the String.prototype. Ember.String.w("alpha beta gamma").forEach(function(key) { console.log(key); }); // > alpha // > beta // > gamma Parameters: str String The string to split Returns: Array array containing th

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

String#resolveHelper()

resolveHelper (name) Helperprivate Defined in packages/ember-htmlbars/lib/system/lookup-helper.js:16 Used to lookup/resolve handlebars helpers. The lookup order is: Look for a registered helper If a dash exists in the name: Look for a helper registed in the container. Use Ember.ComponentLookup to find an Ember.Component that resolves to the given name. Parameters: name String The name of the helper to lookup. Returns: Helper

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#fmt()

fmt (str, formats) Stringdeprecatedpublic Defined in packages/ember-runtime/lib/system/string.js:155 Use ES6 template strings instead: http://babeljs.io/docs/learn-es2015/#template-strings Apply formatting options to the string. This will look for occurrences of "%@" in your string and substitute them with the arguments you pass into this method. If you want to control the specific order of replacement, you can add a number after the key as well to indicate which argument you want to inse