Can deactivate guard | Guards in angular | Angular 16

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

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

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

    Thank you very much. Greetings from Argentina

  • @prabhuprasad3679
    @prabhuprasad3679 11 หลายเดือนก่อน +2

    Hi,
    There's an issue. When you are trying to go back after filling in the form, the guard asks for the confirmation. If you click cancel and then try to navigate back again, the the confirmation doesn't pop up (even though the form is filled)

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

      May be some small checks were missing in your code
      If possible share the code snippets for analysis

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

      Hi Thanks for posting the video, I am also getting the same issue. please try to do the cancel cycle twice.

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

    Excelent brother! i have a question, in case i want to use an angular material component inside the guard would it be possible? i tried to use one with @inject() but got an error 🥴🥴

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

      Planning to do a inject method implementation video you may expect this in couple of days Stay tuned. Will do it for sure for you

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

      @@techshareskk thanks mate, , I’ll keep an eye out

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

    Bro can you make series on nx mono repo using angular standalone and modular both approaches... Also include how to manage GitHub inside it ❤

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

      I can make it but need sometime as im working on guards and there series of videos. Will make these mono repos approach as well for sure. Thanks for your suggestion

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

    Hi, It looks like it doesn't work with lazy loaded components.

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

      I hope this has to work even for Lazy loaded components

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

    bro please make video on how to use canDeactivate guard on template form

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

      You mean template driven form ? If that is the case will upload next video on this.