Closed ymatuhin closed 3 years ago
We have other relative attribute - exact
. Because why the active-class
is also attribute. I like neither of:
<a use:active={{class:'myactive', exact:true}} />
<a use:active={['myactive',true]} />
<a use:active={'myactive'} exact/>
Fair enough, thanks 👍
Is there any benefits of using
use:active active-class="myactive"
instead ofuse:active="myactive"
? Maybe it will be ok to completely removeactive-class
attribute. Nice router btw, gonna try it on.https://svelte.dev/docs#use_action