question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems with tables

See original GitHub issue

I encountered some problems with tables. I have two components my-table and my-row.

The template for my-table is like this:

<table>
  <tbody><ng-content select="my-row"></ng-content></tbody>
</table>

One pf the problems is that ng-content gets extracted from the table tree, i.e. the output is like this:

<ng-content select="my-row"></ng-content>
<table>
  <tbody></tbody>
</table>

The other problem I encountered is when I actually use my-table in another template:

<my-table>
  <my-row>
    <td>foo</td>
    <td>bar</td>
  </my-row>
</my-table>

prettyhtml strips the td elements:

<my-table>
  <my-row>
    foo
    bar
  </my-row>
</my-table>

Version is 0.0.55

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
StarpTechcommented, Sep 15, 2018

Feel free to reopen the issue. I tested both cases and it works.

1reaction
StarpTechcommented, Sep 12, 2018

Fixed with the latest update @starptech/prettyhtml 0.0.56

Read more comments on GitHub >

github_iconTop Results From Across the Web

Math Problems with Data Tables - Smartick
For today´s entry, we are going to solve math problems where the relevant data is displayed on a table. The reason is clear...
Read more >
Linear equations word problems: tables - Khan Academy
Solve word problems about real world relationships that are given in tables.
Read more >
Solving ratio problems with tables (video) - Khan Academy
Solving ratio problems with tables ... We're displaying ratios in a table format here, and then asking: given a ratio, solve for equivalent...
Read more >
Common Problems to Avoid in Tables - LetPub
1. First, make sure that the information you put in a table is worthy of being presented as a table. · 3. Only...
Read more >
Problems with Tables - Manifold.net
Most routine problems with tables arise from confusion over field types. The classic problem is working with a series of values like "3.145",...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found