function translateWithValueToCssClass(scope, element, attrs) {
      var updateFn = updateClassWithValue(element, className, attrs);
      var unwatch = attrs.$observe(attrs.$normalize(className), updateFn);

      updateFn(getNormalizedAttrValue(className, attrs, ""));
      scope.$on("$destroy", function() { unwatch(); });
    }
function translateWithValueToCssClass(scope, element, attrs) {
      var updateFn = updateClassWithValue(element, className, attrs);
      var unwatch = attrs.$observe(attrs.$normalize(className), updateFn);

      updateFn(getNormalizedAttrValue(className, attrs, ""));
      scope.$on("$destroy", function() { unwatch(); });
    }
function translateWithValueToCssClass ( scope , element , attrs ) { var updateFn = updateClassWithValue ( element , className , attrs ) ; var unwatch = attrs . $observe ( attrs . $normalize ( className ) , updateFn ) ; updateFn ( getNormalizedAttrValue ( className , attrs , "" ) ) ; scope . $on ( "$destroy" , function ( ) { unwatch ( ) ; } ) ; }
Add as transformed class selector(s), then
remove the deprecated attribute selector
Add as transformed class selector ( s ) then remove the deprecated attribute selector
translate the value of the class attribute to the correct value