HistoryLocation#formatURL()

formatURL (url) Stringprivate Defined in packages/ember-routing/lib/location/history_location.js:196 Used when using {{action}} helper. The url is always appended to the rootURL. Parameters: url String Returns: String formatted url

Helper.helper()

helper (helper) publicstatic Defined in packages/ember-htmlbars/lib/helper.js:109 Available since 1.13.0 In many cases, the ceremony of a full Ember.Helper class is not required. The helper method creates pure-function helpers without instances. For example: // app/helpers/format-currency.js export function formatCurrency([cents], hash) { let currency = hash.currency; return `${currency}${cents * 0.01}`; }); export default Ember.Helper.helper(formatCurrency); // tests/myhelper.js impo

Helper#recompute()

recomputepublic Defined in packages/ember-htmlbars/lib/helper.js:66 Available since 1.13.0 On a class-based helper, it may be useful to force a recomputation of that helpers value. This is akin to rerender on a component. For example, this component will rerender when the currentUser on a session service changes: // app/helpers/current-user-email.js export default Ember.Helper.extend({ session: Ember.inject.service(), onNewUser: Ember.observer('session.currentUser', function() { thi

HistoryLocation

Ember.HistoryLocation Class PRIVATE Extends: Ember.Object Defined in: packages/ember-routing/lib/location/history_location.js:16 Module: ember-routing Ember.HistoryLocation implements the location API using the browser's history.pushState API.

Helper#compute()

compute (params, hash) public Defined in packages/ember-htmlbars/lib/helper.js:94 Available since 1.13.0 Override this function when writing a class-based helper. Parameters: params Array The positional arguments to the helper hash Object The named arguments to the helper

HashLocation#willDestroy()

willDestroyprivate Inherited from Ember.CoreObject but overwritten in packages/ember-routing/lib/location/hash_location.js:138 Cleans up the HashLocation event listener.

HashLocation#setURL()

setURL (path) private Defined in packages/ember-routing/lib/location/hash_location.js:72 Set the location.hash and remembers what was set. This prevents onUpdateURL callbacks from triggering when the hash was set by HashLocation. Parameters: path String

Helper

Ember.Helper Class PUBLIC Defined in: packages/ember-htmlbars/lib/helper.js:8 Module: ember-templates Ember Helpers are functions that can compute values, and are used in templates. For example, this code calls a helper named format-currency: <div>{{format-currency cents currency="$"}}</div> Additionally, a helper can be called as a nested helper (sometimes called a subexpression). In this example, the computed value of a helper is passed to a component named show-money: {{sho

HashLocation#replaceURL()

replaceURL (path) private Defined in packages/ember-routing/lib/location/hash_location.js:86 Uses location.replace to update the url without a page reload or history modification. Parameters: path String

HashLocation#formatURL()

formatURL (url) private Defined in packages/ember-routing/lib/location/hash_location.js:123 Given a URL, formats it to be placed into the page as part of an element's href attribute. This is used, for example, when using the {{action}} helper to generate a URL based on an event. Parameters: url String