$compile.directive.Attributes.$updateClass()

$updateClass(newClasses, oldClasses);

Adds and removes the appropriate CSS class values to the element based on the difference between the new and old CSS class values (specified as newClasses and oldClasses).

Parameters

Param Type Details
newClasses string

The current CSS className value

oldClasses string

The former CSS className value

doc_AngularJS
2016-03-29 16:10:14
Comments
Leave a Comment

Please login to continue.