It seems like when using *ng-for="item of items" to render a list of items, if I want to use the :first-child selector it will not work as expected. It looks like right before the first item, there is a <script></script> tag inserted, so the rendering ends up as:
<ul>
<script></script>
<li></li>
<li></li>
<li></li>
</ul>
Probably that is intentional, but it should be taken into consideration that this would break the expected behaviour of :first-child and a fix for it might be a good idea.
It seems like when using
*ng-for="item of items"to render a list of items, if I want to use the:first-childselector it will not work as expected. It looks like right before the first item, there is a<script></script>tag inserted, so the rendering ends up as:Probably that is intentional, but it should be taken into consideration that this would break the expected behaviour of
:first-childand a fix for it might be a good idea.