38. Create Custom Structural Directive in the Angular using TemplateRef and ViewContainerRef

Поділитися
Вставка
  • Опубліковано 11 вер 2024
  • Hi Friends
    In this video, we will see how to create a custom structural directive in angular.
    If you like my video, please subscribe to my channel.
    UA-cam Page: / leelawebdev
    Facebook Page: / leelawebdev
    Twitter Page: / leelanarsimha
    Linkedin: / leela-narasimha-reddy-...
    GitHub: github.com/lee...
    #Angular #leelawebdev

КОМЕНТАРІ • 16

  • @priyasuryawanshi1143
    @priyasuryawanshi1143 3 роки тому +1

    Nice explanation ever.I tried to learn this from Udemy but didn't get it.Buy after watching video I clear.you have given the detailed nice explanation.Thanks

  • @rutvikjr8251
    @rutvikjr8251 3 роки тому

    thank you, sir. I am trying to understand it from udemy but not getting it. now I am clear.

  • @asiri3171
    @asiri3171 3 роки тому

    thank you sir. I learned many things about angular and very clear your explanation. I hope to follow the full tutorial

  • @rahulrahul6259
    @rahulrahul6259 Рік тому

    Nice explanation thanks

  • @manisaran0903
    @manisaran0903 3 роки тому

    Property 'appCustomIf' has no initializer and is not definitely assigned in the constructor ----> Why i got this error

    • @mapo890
      @mapo890 2 роки тому

      you can use ! after your variable like this: names !: string[];

  • @Aaaaa_kkkk
    @Aaaaa_kkkk 3 роки тому

    In interview if they ask about elementref and templateref can i explain like this plz correct me.
    Elementref is wrapper around native element used in attribute directive and templateref is to render the template n viewcontainerref- where i need to render the template when the condition is true and it is used to build custom structural directive.

    • @LeelaWebDev
      @LeelaWebDev  3 роки тому +1

      Elementref can be used any where. The type the element we get is the element ref. When we use #ref for an element and we want to use that element in component the type we get is elementref Template ref is also the same if we want to refer the component the type we get is template ref. We use mainly the template ref in structural directive we will use rarely.

    • @Aaaaa_kkkk
      @Aaaaa_kkkk 3 роки тому

      @@LeelaWebDev thank u so much🙂

  • @sarvaniharshi6469
    @sarvaniharshi6469 2 роки тому

    Hi @leela, I'm learning soo much from your videos, thank you, if you have any videos, specific to ngtemplate and ngcontainer or all the angular tags, plz let me know video number or link.
    thanks in advance

  • @pusarlaaishwarya5035
    @pusarlaaishwarya5035 3 роки тому

    nice video!!!!!!!!!!!!!!!!! did you make ngrx video?

  • @gkmishra2009
    @gkmishra2009 4 роки тому

    Give video on the "NGRX"

    • @LeelaWebDev
      @LeelaWebDev  4 роки тому

      Sure, I will do the ngrx course also