Answer the question
In order to leave comments, you need to log in
Add class in angularjs?
There is a popup window
<div class="cd-popup" ng-if="showFon" ng-click="clickToFon($event)">
<div class="window">
<p>asd</p>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
<div ng-class="{'active': showFon}">
in general, I don’t see the point in doing anything else if the class active
should be hung on the element always when it works for ng-if
you ... just add this class. Until the condition is met, the element will be removed from the DOM.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question