D
D
Deodatuss2016-03-29 16:13:03
JavaScript
Deodatuss, 2016-03-29 16:13:03

How to make angular2 not wrap elements?

Everything suited, everything was fine, until there was a need to create a component that is tr. And when inserting this component into the page, Angular2 does the following:

<my-component>
        <tr>...</tr>
    </my-component>

Everything collapses and bleeds. How can you force it not to do so? Where to look? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-03-29
@Deodatuss

How can you force it not to do so? Where to look?

And why do you need a component that is next to the table? Make a separate component responsible for displaying the table, and separate components that will be the contents of the cells. So it is more logical in terms of separation of duties and support, and it will be more convenient later.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question