John Cowen 967afbaaf4
ui: Outlet Loading (#8779)
Moves all Route/model hook loading to use Outlet components which listen on route change.
2020-10-01 09:33:22 +01:00

15 lines
362 B
Handlebars

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