Component#hasBlock

hasBlockpublic Defined in packages/ember-htmlbars/lib/component.js:198 Available since 1.13.0 Returns true when the component was invoked with a block template. Example (hasBlock will be false): {{! templates/application.hbs }} {{foo-bar}} {{! templates/components/foo-bar.hbs }} {{#if hasBlock}} This will not be printed, because no block was provided {{/if}} Example (hasBlock will be true): {{! templates/application.hbs }} {{#foo-bar}} Hi! {{/foo-bar}} {{! templates/components/foo-

Component#readDOMAttr()

readDOMAttr (name) public Defined in packages/ember-htmlbars/lib/component.js:160 Normally, Ember's component model is "write-only". The component takes a bunch of attributes that it got passed in, and uses them to render its template. One nice thing about this model is that if you try to set a value to the same thing as last time, Ember (through HTMLBars) will avoid doing any work on the DOM. This is not just a performance optimization. If an attribute has not changed, it is important not

Component#hasBlockParams

hasBlockParamspublic Defined in packages/ember-htmlbars/lib/component.js:258 Available since 1.13.0 Returns true when the component was invoked with a block parameter supplied. Example (hasBlockParams will be false): {{! templates/application.hbs }} {{#foo-bar}} No block parameter. {{/foo-bar}} {{! templates/components/foo-bar.hbs }} {{#if hasBlockParams}} This will not be printed, because no block was provided {{yield this}} {{/if}} Example (hasBlockParams will be true): {{! templ

Component#didUpdateAttrs()

didUpdateAttrspublic Defined in packages/ember-htmlbars/lib/component.js:413 Available since 1.13.0 Called when the attributes passed into the component have been changed. Called only during a rerender, not during an initial render.

Component#didUpdate event

didUpdatepublic Defined in packages/ember-htmlbars/lib/component.js:461 Available since 1.13.0 Called when the component has updated and rerendered itself. Called only during a rerender, not during an initial render.

Component#didUpdate()

didUpdatepublic Defined in packages/ember-htmlbars/lib/component.js:451 Available since 1.13.0 Called when the component has updated and rerendered itself. Called only during a rerender, not during an initial render.

Component#didUpdateAttrs event

didUpdateAttrspublic Defined in packages/ember-htmlbars/lib/component.js:423 Available since 1.13.0 Called when the attributes passed into the component have been changed. Called only during a rerender, not during an initial render.

Component#didRender()

didRenderpublic Defined in packages/ember-htmlbars/lib/component.js:375 Available since 1.13.0 Called after a component has been rendered, both on initial render and in subsequent rerenders.

Component#didRender event

didRenderpublic Defined in packages/ember-htmlbars/lib/component.js:385 Available since 1.13.0 Called after a component has been rendered, both on initial render and in subsequent rerenders.

Component#destroy()

destroyprivate Inherited from Ember.CoreObject but overwritten in packages/ember-views/lib/mixins/view_support.js:328 You must call destroy on a view to destroy the view (and all of its child views). This will remove the view from any parent node, then make sure that the DOM element managed by the view can be released by the memory manager.