I have a link in the navigation that includes an animated icon of a + turning into an x. When the icon is in the x state, I want users to be able to close it by clicking on the icon or text. However, I am unsure of the best way to approach this.
One option is to display a hidden element once the animation transitions to x and then hide it when clicked
Another option is to add a class to the link that triggers a
$state.transitionTo('state')
to redirect to the desired URLAny other suggestions?