9. Host-Context Pseudo Selector. Target the parent element for the host selector - Angular16

Поделиться
HTML-код
  • Опубликовано: 19 дек 2024

Комментарии • 3

  • @rkumar.lnct24
    @rkumar.lnct24 Год назад

    Very well explained...the line which you told that you cannot traverse upwards in a css. I have seen most of the developers struggling to apply css on common components where only little bit of css change required and people sometimes start taking it as input param. Well explained :-)

  • @Chandrakumar-ub1uh
    @Chandrakumar-ub1uh Год назад

    As per the explanation you already have a class of parent or grandparent.. then what is the need of host context? Cant I directly use the class to style the parent div?