I am using Angular 11 and in my component.html file I have an icon:
<i class="fa fa-eye" aria-hidden="true"></i>
What I need to do is to toggle the class when I click on it.
I need to toggle between:
<i class="fa fa-eye aria-hidden="true"></i>
and
<i class="fa fa-eye-slash aria-hidden="true"></i>
How can I do this?