Using Block Params

Using Block Params Components can have properties passed in (Passing Properties to a Component), but they can also return output to be used in a block expression. Return values from a component with yield app/templates/index.hbs {{blog-post post=model}} app/templates/components/blog-post.hbs {{yield post.title post.body post.author}} Here an entire blog post model is being passed to the component as a single component property. In turn the component is returning values using yield. In this

ContainerDebugAdapter

Ember.ContainerDebugAdapter Class PUBLIC Extends: Ember.Object Defined in: packages/ember-extension-support/lib/container_debug_adapter.js:16 Module: ember-extension-support The ContainerDebugAdapter helps the container and resolver interface with tools that debug Ember such as the Ember Extension for Chrome and Firefox. This class can be extended by a custom resolver implementer to override some of the methods with library-specific code. The methods likely to be overridden are: canCatalog

Binding#to()

to (path) Ember.Bindingpublic Defined in packages/ember-metal/lib/binding.js:87 This will set the to property path to the specified value. It will not attempt to resolve this property path to an actual object until you connect the binding. The binding will search for the property path starting at the root object you pass when you connect() the binding. It follows the same rules as get() - see that method for more information. Parameters: path String|Tuple A property path or tuple. R

The View Tree

The View Tree You can use the View Tree to inspect your application's current state. The View Tree shows you the currently rendered templates, models, controllers, and components, in a tree format. Click on the View Tree menu on the left to see these. Use the tips described in Object Inspector to inspect models and controllers. See below for templates and components. Inspecting Templates To see how a template was rendered by Ember, click on the template in the View Tree. If you're using Chro

Engine.buildRegistry()

buildRegistry (namespace) Ember.Registryprivatestatic Inherited from Ember.Engine but overwritten in packages/ember-application/lib/system/engine.js:370 This creates a registry with the default Ember naming conventions. It also configures the registry: registered views are created every time they are looked up (they are not singletons) registered templates are not factories; the registered value is returned directly. the router receives the application as its namespace property all controll

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

Router#rootURL

rootURLpublic Defined in packages/ember-routing/lib/system/router.js:72 Represents the URL of the root of the application, often '/'. This prefix is assumed on all routes defined on this router. Default: '/'

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().

Enumerable#compact()

compactArraypublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:774 Returns a copy of the array with all null and undefined elements removed. let arr = ['a', null, 'c', undefined]; arr.compact(); // ['a', 'c'] Returns: Array the array without null and undefined elements.

HistoryLocation#onUpdateURL()

onUpdateURL (callback) private Defined in packages/ember-routing/lib/location/history_location.js:175 Register a callback to be invoked whenever the browser history changes, including using forward and back buttons. Parameters: callback Function