Currently, I am delving into the world of Angular and facing a challenge in displaying an icon after triggering a function call using ng-click. I have attempted to use ng-if for this purpose but unfortunately, it did not yield the desired result. I would greatly appreciate any assistance or solution you may offer.
<li ng-click="bookmark(question)"><a><i class="fa fa-bookmark"></i>Bookmark</a></li>
<i class="fa fa-bookmark"></i>
The issue lies within my ng-click function and I aspire to have the bookmark icon displayed upon its activation. How can I go about achieving this?