docs/vendor.js
function elementAttribute(index, name, value, sanitizer) {
    if (value !== NO_CHANGE) {
        var element_1 = loadElement(index);
        if (value == null) {
            ngDevMode && ngDevMode.rendererRemoveAttribute++;
            isProceduralRenderer(renderer) ? renderer.removeAttribute(element_1.native, name) :
                element_1.native.removeAttribute(name);
        }
        else {
            ngDevMode && ngDevMode.rendererSetAttribute++;
            var strValue = sanitizer == null ? stringify$1(value) : sanitizer(value);
            isProceduralRenderer(renderer) ? renderer.setAttribute(element_1.native, name, strValue) :
                element_1.native.setAttribute(name, strValue);
        }
    }
}
function elementAttribute(index, name, value, sanitizer) {
    if (value !== NO_CHANGE) {
        var element_1 = loadElement(index);
        if (value == null) {
            ngDevMode && ngDevMode.rendererRemoveAttribute++;
            isProceduralRenderer(renderer) ? renderer.removeAttribute(element_1.native, name) :
                element_1.native.removeAttribute(name);
        }
        else {
            ngDevMode && ngDevMode.rendererSetAttribute++;
            var strValue = sanitizer == null ? stringify$1(value) : sanitizer(value);
            isProceduralRenderer(renderer) ? renderer.setAttribute(element_1.native, name, strValue) :
                element_1.native.setAttribute(name, strValue);
        }
    }
}
function elementAttribute ( index , name , value , sanitizer ) { if ( value !== NO_CHANGE ) { var element_1 = loadElement ( index ) ; if ( value == null ) { ngDevMode && ngDevMode . rendererRemoveAttribute ++ ; isProceduralRenderer ( renderer ) ? renderer . removeAttribute ( element_1 . native , name ) : element_1 . native . removeAttribute ( name ) ; } else { ngDevMode && ngDevMode . rendererSetAttribute ++ ; var strValue = sanitizer == null ? stringify$1 ( value ) : sanitizer ( value ) ; isProceduralRenderer ( renderer ) ? renderer . setAttribute ( element_1 . native , name , strValue ) : element_1 . native . setAttribute ( name , strValue ) ; } } }
Updates the value of removes an attribute on an Element.

@param number index The index of the element in the data array
@param name name The name of the attribute.
@param value value The attribute is removed when value is `null` or `undefined`.
Otherwise the attribute value is set to the stringified value.
@param sanitizer An optional function used to sanitize the value.
Updates the value of removes an attribute on an Element .