You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ember-cli addon provides a component that allows for 'tethering' a block to a target somewhere else on the page. The target may be an element, an element selector, or an Ember view. Importantly, the component retains typical context for Ember action handling and data binding.
Compatibility
Ember.js v3.28 or above
Ember CLI v3.28 or above
Node.js v14 or above
For Ember 1.13 - 2.3, use 0.4.1. For support for earlier versions of Ember, use ember-tether 0.3.1.
If this.isShowing starts off true and becomes false, then the "A puppy" text will be removed from the page.
Similarly, if you use <EmberTether /> in a route's template, it will
render its content next to the target element when the route is entered
and remove it when the route is exited.
Acceptance Testing
Tether works by appending tethered elements to the <body> tag. Unfortunately, this moves your content outside of the Ember application rootElement during acceptance testing. This breaks event dispatch and action handling, including traditional Ember test helpers like click.
As of version 0.4.0, we can configure a different element to be used instead of body. This can be useful for Ember tests.