fixed-table-header icon indicating copy to clipboard operation
fixed-table-header copied to clipboard

Not working with table header ng-repeat, Controller 'mdTable', required by directive 'mdRow', can't be found!

Open 2ernestkg opened this issue 9 years ago • 3 comments

Tried to use with table headers that are generated dynamically by ng-repeat

<thead fix-head md-head md-order="vm.order" md-on-reorder="vm.reorder">
            <tr md-row>
                <th ng-repeat="header in vm.tHeaders" md-column md-numeric="header.numeric"
                    ng-attr-flex="{{header.flex ? header.flex : ''}}"
                    ng-attr-md-order-by="{{header.order === false ? '' : header.field}}"
                    ng-attr-md-desc="{{header.desc}}" ng-hide="vm.showHideColumns && !header.visible">
                    <span translate>{{header.text}}</span>
                </th>
            </tr>
</thead>

On compile of header.clone, it is giving error Controller 'mdTable', required by directive 'mdRow', can't be found!

Maybe cause header.clone, contain only thead without table tag and directive md-table. So tried to compile appended version table.clone.append(header.clone)[0], compilation was successfull, but instead of populated th tags i see comment <--ngRepeat in header in vm.tHeaders-->

2ernestkg avatar Jul 01 '16 13:07 2ernestkg

+1 the same issue

osmdawy avatar Nov 11 '16 18:11 osmdawy

+1 the same issue

praveenraji2i avatar Oct 11 '17 11:10 praveenraji2i

+1 the same issue

oviniciusfeitosa avatar Oct 24 '17 20:10 oviniciusfeitosa