1
Код отображается следующим образом: -Строка, добавленная директивой через «шаблон», добавляется в верхнюю часть таблицы?
шаблон директивы находится наверху, а затем отображается ада, но ожидается, что thead будет наверху.
здесь HTML
<div class="panel_content">
<table summary="A table listing various other formats for this product">
<thead>
<tr>
<th scope="col">Other Formats</th>
<th scope="col" class="site amount"><span>price</span></th>
<th scope="col" class="market_place amount"><span>New from</span></th>
<th scope="col" class="market_place amount"><span>Used from</span></th>
<th scope="col" class="market_place amount"><span></span></th>
<th scope="col" class="market_place amount"><span></span></th>
</tr>
</thead>
<tbody>
<dir></dir>
</tbody>
</table>
</div>
это директива
app.directive('dir', function() {
return {
restrict: 'E',
replace: true,
template: '<tr><td>asdf</td></tr>'
};
});