Skip to content

Instantly share code, notes, and snippets.

@omghax
Created April 10, 2018 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omghax/2e19a2244b5c2828e0b73301e3a41c21 to your computer and use it in GitHub Desktop.
Save omghax/2e19a2244b5c2828e0b73301e3a41c21 to your computer and use it in GitHub Desktop.
<ul>
<li>{{link-to 'Tab 1' (query-params activeTab=1)}}</li>
<li>{{link-to 'Tab 2' (query-params activeTab=2)}}</li>
<li>{{link-to 'Tab 3' (query-params activeTab=3)}}</li>
</ul>
{{#animated-value activeTab rules=rules as |currentActiveTab|}}
{{#if (eq currentActiveTab 1)}}
<p>Panel 1</p>
{{else if (eq currentActiveTab 2)}}
<p>Panel 2</p>
{{else if (eq currentActiveTab 3)}}
<p>Panel 3</p>
{{/if}}
{{/animated-value}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment