one component with multiple HTML support

Discussão em 'Angular' iniciado por super cool, Outubro 23, 2024.

  1. super cool

    super cool Guest

    I'm trying to breakdown bigger HTML chunks which has repeated markup based on flags.

    Is there a way we can make html code split into files one.html, two.html and render them into my component (.ts will decide which html to load )

    Basically idea is one component -> multiple html files

    I can have single big html like previous and use ng-template/ngContentOutlet but this is still making readability a issue for a 2k+ lines on html.

    we're on angular 18.x standalone, any suggestions are golden

    Continue reading...

Compartilhe esta Página