code: function updateIsLocked(isLocked, oldValue) {
          if (isLocked === oldValue) {
            element.toggleClass('toggle-component-locked-open', !!isLocked);
          } else {
            $animate[isLocked ? 'addClass' : 'removeClass'](element, 'toggle-component-locked-open');
          }
        }
docs: Toggle the DOM classes to indicate `locked`
  @param isLocked