#34 ng-container in Angular | Angular Component & Directives | A Complete Angular Course

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

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

  • @tejashreedharmireddi2627
    @tejashreedharmireddi2627 Год назад +1

    Awesome content. Worth watching. Please continue with the content!

  • @awaraamin6850
    @awaraamin6850 Год назад +1

    Informative work, thank you.

  • @AjayCoding
    @AjayCoding Год назад +2

    great video

  • @tarasshevchuk8477
    @tarasshevchuk8477 Год назад

    Very useful !!!

  • @motivationalcomred
    @motivationalcomred 3 месяца назад

    use ng-container when 2 directive to used(substitute to div) and and with ng-template (if else) if condition with ng-template

  • @KashifBhai527
    @KashifBhai527 Год назад

    Please make the course on Salesforce commerce coloud with SFRA

  • @RodRavenpictures
    @RodRavenpictures Год назад

    So you cannot use multiple structural directives (*ngFor, *ngIf) together in the same tag, same with any event binding cause they all manupilate the DOM and might create some conflicts. Got it!

  • @SebastianTreu-p6j
    @SebastianTreu-p6j Год назад

    never understood why using containers or template. You just do and then and you save a lot of writing...

    • @advance5189
      @advance5189 Год назад

      I think it makes sense when you use a big template (when there are a lot of elements inside)

    • @salimchoura3700
      @salimchoura3700 4 дня назад

      @@advance5189 even if you are using big section of HTML, you can just put everything inside a div and do and *ngIf on that div

  • @SebastianTreu-p6j
    @SebastianTreu-p6j Год назад +1

    never understood why using containers or template. You just do and then and you save a lot of writing...

    • @prashanthm1986
      @prashanthm1986 11 месяцев назад +1

      We will use ng-containers and ng-templates , when we are need to reuse the same template for different conditions. In those cases it saves lots of code and time .