Class LinkComponent
publicimport LinkComponent from '@ember/routing/link-component';
LinkComponent
renders an element whose click
event triggers a
transition of the application's instance of Router
to
a supplied route by name.
LinkComponent
components are invoked with {{#link-to}}. Properties
of this class can be overridden with reopen
to customize application-wide
behavior.
didInsertElement public
Inherited from Ember.ViewMixin packages/ember-views/lib/mixins/view_support.js:311
Called when the element of the view has been inserted into the DOM. Override this function to do any set up that requires an element in the document body.
When a view has children, didInsertElement will be called on the child view(s) first and on itself afterwards.
didReceiveAttrs public
Inherited from Component packages/ember-glimmer/lib/component.ts:767
Available since v1.13.0
Called when the attributes passed into the component have been updated. Called both during the initial render of a container and during a rerender. Can be used in place of an observer; code placed here will be executed every time any attribute updates.
didRender public
Inherited from Component packages/ember-glimmer/lib/component.ts:785
Available since v1.13.0
Called after a component has been rendered, both on initial render and in subsequent rerenders.
didUpdate public
Inherited from Component packages/ember-glimmer/lib/component.ts:849
Available since v1.13.0
Called when the component has updated and rerendered itself. Called only during a rerender, not during an initial render.
didUpdateAttrs public
Inherited from Component packages/ember-glimmer/lib/component.ts:817
Available since v1.13.0
Called when the attributes passed into the component have been changed. Called only during a rerender, not during an initial render.
willClearRender public
Inherited from Ember.ViewMixin packages/ember-views/lib/mixins/view_support.js:324
Called when the view is about to rerender, but before anything has been torn down. This is a good opportunity to tear down any manual observers you have installed based on the DOM state
willDestroyElement public
Inherited from Ember.ViewMixin packages/ember-views/lib/mixins/view_support.js:348
Called when the element of the view is going to be destroyed. Override this function to do any teardown that requires an element, like removing event listeners.
Please note: any property changes made during this event will have no effect on object observers.
willInsertElement public
Inherited from Ember.ViewMixin packages/ember-views/lib/mixins/view_support.js:303
Called when a view is going to insert an element into the DOM.
willRender public
Inherited from Component packages/ember-glimmer/lib/component.ts:801
Available since v1.13.0
Called before a component has been rendered, both on initial render and in subsequent rerenders.
willUpdate public
Inherited from Component packages/ember-glimmer/lib/component.ts:833
Available since v1.13.0
Called when the component is about to update and rerender itself. Called only during a rerender, not during an initial render.