You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
<my-table><row><td>this doesn't show up</td></row></my-table>
The <row> tag ends up being rendered inside the <tr>, and <td>s are lost
The browser takes liberties with <tr> and <td> tags (seems to strip them out if they're not in the right place)
One way to solve would be if we could transclude <tr attribute-selector> and transclude: { row: '[attribute-selector]'}
The text was updated successfully, but these errors were encountered:
cheapsteak
changed the title
Transclude slot doesn't work when outlet is in a <table>
Transclude slot doesn't work as expected when outlet is in a <table>
Jan 11, 2017
Yes, browsers discard td and tr elements if they are not inside a table element. This is standard behavior and cannot be changed, because the browser parses the HTML before Angular mutates the DOM. Looks like a valid use case attribute selectors in multi transclusion.
I am not sure how attribute selectors would help here. The problem is that you can't have <td> elements inside non-<tr> elements. How you select them is not the issue.
Want to create a table component but still allow users to customize the rendering of each row
This does not seem to work
The
<row>
tag ends up being rendered inside the<tr>
, and<td>
s are lostThe browser takes liberties with
<tr>
and<td>
tags (seems to strip them out if they're not in the right place)One way to solve would be if we could transclude
<tr attribute-selector>
andtransclude: { row: '[attribute-selector]'}
The text was updated successfully, but these errors were encountered: