Angular Content Projection: Everything You Need to Know

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 37

  • @ChauTran
    @ChauTran ปีที่แล้ว +9

    Love it. One comment:
    at 17:35, we can use `ContentChild(CarMainContent, {read: TemplateRef}) carMainContent: TemplateRef` to read the TemplateRef token from the directive instead of having to declare/inject the TemplateRef in the Directive itself.

  • @tamilcodebytes1915
    @tamilcodebytes1915 ปีที่แล้ว +3

    You are awesome, Profanis! 🥳! Please keep posting the videos. I'm checking your channel daily.

  • @andreymelendez1107
    @andreymelendez1107 ปีที่แล้ว +1

    Have been looking for this solution for a complete week, very helpful!!!!

  • @madpwnz
    @madpwnz ปีที่แล้ว +1

    Woohooo!!! New video!
    Thank you man!

  • @kushoyarou
    @kushoyarou ปีที่แล้ว +2

    Thank you for the always helpful content! Have a great year!

  • @f19-x9k
    @f19-x9k ปีที่แล้ว +1

    Super clear explanation. Thanks!

  • @ilhammaghfiro4819
    @ilhammaghfiro4819 ปีที่แล้ว +1

    Thank you!! this is very awesome

  • @sakarsr
    @sakarsr ปีที่แล้ว +2

    Excellent, you are really a great teacher. Thank you and good health.

  • @avecesar
    @avecesar ปีที่แล้ว +2

    Thank you!! I´ve been learning a lot from your videos; very clear, explanatory and useful.

  • @AdyNgom
    @AdyNgom ปีที่แล้ว +1

    Awesome video - nice pace and a lot packed into such a great example and use case.

  • @developerfriendly
    @developerfriendly ปีที่แล้ว +1

    thanks for the video. Angular content projection is a very complicated stuff. I wish Angular could simplify it like react does. In React just put everything inside tags and receive everything with children property in component.

  • @LucasYamone
    @LucasYamone 10 หลายเดือนก่อน +1

    Thank you for this! It helped me a lot!

  • @unity3dconcepts434
    @unity3dconcepts434 ปีที่แล้ว

    Wow.... so many concepts in one video. I loved it. Amazing... Subscribed and liked. 😀

  • @Hariharan0606
    @Hariharan0606 ปีที่แล้ว +1

    Clearly explained!

  • @ladimirobaquero6149
    @ladimirobaquero6149 8 หลายเดือนก่อน +1

    thanks for your contribution

  • @andresfelipecano4160
    @andresfelipecano4160 ปีที่แล้ว +1

    magnific content the this video.

  • @s_gryt
    @s_gryt ปีที่แล้ว +2

    Cool explanation, liked it.
    That "obj" hint on 3min 06sec, left screen line 4: @Component(obj: { .... - what plugin do you use for that?
    (there are more examples, but I hope my questions makes sense)
    Thank you.

    • @CodeShotsWithProfanis
      @CodeShotsWithProfanis  ปีที่แล้ว +3

      It's this setting in the settings.json file
      "typescript.inlayHints.parameterNames.enabled": "all"

  • @felsherrr
    @felsherrr 10 หลายเดือนก่อน

    Brilliant video, I'm glad I clicked on this one first while searching for a vid. But what the hell, even such a small thing in the become sort of a mosnter. And at my work I have a HUGE component built with container ng content and containers. And it is a freaking mess to look at and maintain. I feel like McConaughey who fell into the black hole

  • @sarahibrahim8943
    @sarahibrahim8943 ปีที่แล้ว

    thank you

  • @028-manikandan3
    @028-manikandan3 ปีที่แล้ว +1

    Thanks bro

  • @kr30000
    @kr30000 10 หลายเดือนก่อน

    ...Angular really seems to have the worst templating syntax for composition.

  • @praktycznewskazowki6733
    @praktycznewskazowki6733 หลายเดือนก่อน

    Wtf? You are using directive like normal component?