$compile.directive.Attributes.$addClass()

$addClass(classVal);

Adds the CSS class value specified by the classVal parameter to the element. If animations are enabled then an animation will be triggered for the class addition.

Parameters

Param Type Details
classVal string

The className value that will be added to the element

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

Please login to continue.