Engine

Ember.Engine Class PUBLIC Extends: Ember.Namespace Uses: RegistryProxy Defined in: packages/ember-application/lib/system/engine.js:37 Module: ember-application The Engine class contains core functionality for both applications and engines. Each engine manages a registry that's used for dependency injection and exposed through RegistryProxy. Engines also manage initializers and instance initializers. Engines can spawn EngineInstance instances via buildInstance().

Application#eventDispatcher

eventDispatcherEmber.EventDispatcherpublic Defined in packages/ember-application/lib/system/application.js:220 The Ember.EventDispatcher responsible for delegating events to this application's views. The event dispatcher is created by the application at initialization time and sets up event listeners on the DOM element described by the application's rootElement property. See the documentation for Ember.EventDispatcher for more information. Default: null

ClassNamesSupport#childViews

childViewsArrayprivate Defined in packages/ember-views/lib/mixins/child_views_support.js:12 Array of child views. You should never edit this array directly. Default: []

RegistryProxyMixin#inject()

inject (factoryNameOrType, property, injectionName) public Defined in packages/ember-runtime/lib/mixins/registry_proxy.js:203 Define a dependency injection onto a specific factory or all factories of a type. When Ember instantiates a controller, view, or other framework component it can attach a dependency to that component. This is often used to provide services to a set of framework components. An example of providing a session object to all controllers: let App = Ember.Application.create

Observable#getWithDefault()

getWithDefault (keyName, defaultValue) Objectpublic Defined in packages/ember-runtime/lib/mixins/observable.js:415 Retrieves the value of a property, or a default value in the case that the property returns undefined. person.getWithDefault('lastName', 'Doe'); Parameters: keyName String The name of the property to retrieve defaultValue Object The value to return if the property value is undefined Returns: Object The property value or the defaultValue.

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

NoneLocation

Ember.NoneLocation Class PRIVATE Extends: Ember.Object Defined in: packages/ember-routing/lib/location/none_location.js:11 Module: ember-routing Ember.NoneLocation does not interact with the browser. It is useful for testing, or when you need to manage state with your Router, but temporarily don't want it to muck with the URL (for example when you embed your application in a larger page).

Passing Properties to a Component

Passing Properties to a Component Components are isolated from their surroundings, so any data that the component needs has to be passed in. For example, imagine you have a blog-post component that is used to display a blog post: app/templates/components/blog-post.hbs <article class="blog-post"> <h1>{{title}}</h1> <p>{{body}}</p> </article> Now imagine we have the following template and route: app/routes/index.js import Ember from 'ember'; export defa

Array#objectAt()

objectAt (idx) *public Defined in packages/ember-runtime/lib/mixins/array.js:225 Returns the object at the given index. If the given index is negative or is greater or equal than the array length, returns undefined. This is one of the primitives you must implement to support Ember.Array. If your object supports retrieving the value of an array item using get() (i.e. myArray.get(0)), then you do not need to implement this method yourself. let arr = ['a', 'b', 'c', 'd']; arr.objectAt(0); /

Ember.computed.notEmpty()

notEmpty (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:87 A computed property that returns true if the value of the dependent property is NOT null, an empty string, empty array, or empty function. Example let Hamster = Ember.Object.extend({ hasStuff: Ember.computed.notEmpty('backpack') }); let hamster = Hamster.create({ backpack: ['Food', 'Sleeping Bag', 'Tent'] }); hamster.get('hasStuff'); // true hamster.get('back