docs/vendor.js
function generateInitialInputs(directiveIndex, inputs, tNode) {
    var initialInputData = tNode.initialInputs || (tNode.initialInputs = []);
    initialInputData[directiveIndex] = null;
    var attrs = tNode.attrs;
    var i = 0;
    while (i < attrs.length) {
        var attrName = attrs[i];
        if (attrName === 1 /* SelectOnly */)
            break;
        if (attrName === 0 /* NamespaceURI */) {
            // We do not allow inputs on namespaced attributes.
            i += 4;
            continue;
        }
        var minifiedInputName = inputs[attrName];
        var attrValue = attrs[i + 1];
        if (minifiedInputName !== undefined) {
            var inputsToStore = initialInputData[directiveIndex] || (initialInputData[directiveIndex] = []);
            inputsToStore.push(minifiedInputName, attrValue);
        }
        i += 2;
    }
    return initialInputData;
}
function generateInitialInputs(directiveIndex, inputs, tNode) {
    var initialInputData = tNode.initialInputs || (tNode.initialInputs = []);
    initialInputData[directiveIndex] = null;
    var attrs = tNode.attrs;
    var i = 0;
    while (i < attrs.length) {
        var attrName = attrs[i];
        if (attrName === 1 /* SelectOnly */)
            break;
        if (attrName === 0 /* NamespaceURI */) {
            // We do not allow inputs on namespaced attributes.
            i += 4;
            continue;
        }
        var minifiedInputName = inputs[attrName];
        var attrValue = attrs[i + 1];
        if (minifiedInputName !== undefined) {
            var inputsToStore = initialInputData[directiveIndex] || (initialInputData[directiveIndex] = []);
            inputsToStore.push(minifiedInputName, attrValue);
        }
        i += 2;
    }
    return initialInputData;
}
function generateInitialInputs ( directiveIndex , inputs , tNode ) { var initialInputData = tNode . initialInputs || ( tNode . initialInputs = [ ] ) ; initialInputData [ directiveIndex ] = null ; var attrs = tNode . attrs ; var i = 0 ; while ( i < attrs . length ) { var attrName = attrs [ i ] ; if ( attrName === 1 /* SelectOnly */ ) break ; if ( attrName === 0 /* NamespaceURI */ ) { // We do not allow inputs on namespaced attributes. i += 4 ; continue ; } var minifiedInputName = inputs [ attrName ] ; var attrValue = attrs [ i + 1 ] ; if ( minifiedInputName !== undefined ) { var inputsToStore = initialInputData [ directiveIndex ] || ( initialInputData [ directiveIndex ] = [ ] ) ; inputsToStore . push ( minifiedInputName , attrValue ) ; } i += 2 ; } return initialInputData ; }
Generates initialInputData for a node and stores it in the template's static storage
so subsequent template invocations don't have to recalculate it.

initialInputData is an array containing values that need to be set as input properties
for directives on this node, but only once on creation. We need this array to support
the case where you set an @Input property of a directive using attribute-like syntax.
e.g. if you have a `name` @Input, you can set it once like this:

<my-component name="Bess"></my-component>

@param directiveIndex Index to store the initial input data
@param inputs The list of inputs from the directive def
@param tNode The static data on this node
Generates initialInputData for a node and stores it in the template s static storage so subsequent template invocations don t have to recalculate it .