open-consul/ui/packages/consul-ui/app/components/outlet/index.hbs
John Cowen 7c36d749f5
ui: Add Route component / routlet service (#9813)
* Add Routlet service and Route Component

* Add ember-assign-helper (already an indirect dependency)

* Use EventListeners for is-href instead of observing

* Don't include :active in '-intent' styles
2021-03-08 12:15:54 +00:00

17 lines
460 B
Handlebars

{{did-insert this.connect}}
{{will-destroy this.disconnect}}
<section
{{did-insert (fn this.attributeChanged 'element')}}
class="outlet"
data-outlet={{@name}}
data-route={{this.routeName}}
data-state={{this.state.name}}
data-transition={{concat this.previousState.name ' ' this.state.name}}
{{on 'transitionend' this.transitionEnd}}
>
{{yield (hash
state=this.state
previousState=this.previousState
route=this.route
)}}
</section>