code: function getTileSpans(tileElements) {
        return [].map.call(tileElements, function(ele) {
          var ctrl = angular.element(ele).controller('mdGridTile');
          return {
            row: parseInt(
                $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-rowspan'), 10) || 1,
            col: parseInt(
                $mdMedia.getResponsiveAttribute(ctrl.$attrs, 'md-colspan'), 10) || 1
          };
        });
      }
docs: Gets an array of objects containing the rowspan and colspan for each tile.
  @returns {Array<{row: number, col: number}>}