code: function extractRowText(tr) {
      var cellContents = [];
      angular.forEach(tr.children, function(tableElement) {
        cellContents.push(tableElement.textContent);
      });
  
      return cellContents;
    }
docs: Extracts text as an array (one element per cell) from a tr element.