use @outletArgs

This commit is contained in:
awesomerobot 2023-08-03 11:41:26 -04:00
parent 7c534ed55a
commit 6a328052d2
2 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{{#if this.shouldShow}}
<ul
class="custom-header-links
{{if this.attrs.scrolledTopic 'custom-header-links--hide-links'}}"
{{if @scrolledTopic 'custom-header-links--hide-links'}}"
>
{{#each this.links as |link|}}
<li

View File

@ -1,3 +1 @@
{{! @attrs.topic does not work here }}
{{! template-lint-disable no-args-paths }}
<CustomHeaderLinks @scrolledTopic={{this.args.attrs.topic}} />
<CustomHeaderLinks @scrolledTopic={{@outletArgs.attrs.topic}} />