code: function matchingSelectorIndex(tNode, selectors, textSelectors) {
      var ngProjectAsAttrVal = getProjectAsAttrValue(tNode);
      for (var i = 0; i < selectors.length; i++) {
          // if a node has the ngProjectAs attribute match it against unparsed selector
          // match a node against a parsed selector only if ngProjectAs attribute is not present
          if (ngProjectAsAttrVal === textSelectors[i] ||
              ngProjectAsAttrVal === null && isNodeMatchingSelectorList(tNode, selectors[i])) {
              return i + 1; // first matching selector "captures" a given node
          }
      }
      return 0;
  }
docs: Checks a given node against matching selectors and returns
  selector index (or 0 if none matched).
  
  This function takes into account the ngProjectAs attribute: if present its value will be compared
  to the raw (un-parsed) CSS selector instead of using standard selector matching logic.