You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
<idata-ng-class="{'fa-clock-o fa purple':suggestion.notificationStatus.id == 2, 'fa fa-circle-o orange2':suggestion.notificationStatus.id == 1}"></i>
When I change suggestion.notificationStatus.id, ng-class removes fa from classes that applied to element.
I saw the source code. In $AnimateProvider there is a method named setClass. The problem is it first adds classes then removes classes. The parameters that this method receive are as following:
element: i
add: "fa-clock-o fa purple"
remove: "fa fa-circle-o orange2"
done: undefined
I think a good solution is not to have any duplicate classes in setClass method because changing the order of remove and add in this method may raise other problems. So it can be fixed by fixing updateClasses function of ng-class directive.
Note that I am using angularjs v1.2.16
The text was updated successfully, but these errors were encountered:
I have the following icon with fontawesome:
When I change
suggestion.notificationStatus.id
,ng-class
removesfa
from classes that applied to element.I saw the source code. In
$AnimateProvider
there is a method namedsetClass
. The problem is it first adds classes then removes classes. The parameters that this method receive are as following:i
"fa-clock-o fa purple"
"fa fa-circle-o orange2"
undefined
I think a good solution is not to have any duplicate classes in
setClass
method because changing the order of remove and add in this method may raise other problems. So it can be fixed by fixingupdateClasses
function ofng-class
directive.Note that I am using angularjs v1.2.16
The text was updated successfully, but these errors were encountered: