Angular 10 Tutorial #53 - Route Guards - Resolve Tutorial | Angular 10 Tutorial For Beginners

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

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

  • @amanuellebassi7294
    @amanuellebassi7294 3 года назад +2

    Thanks, Sridhar. It is eye-opening!

  • @addankiharshini2450
    @addankiharshini2450 3 года назад +2

    Hi Sridhar,
    Usually also to display any data on a page we query to server using http.get request and show it on the page right. So where exactly we use this resolver.
    Thanks
    Harshini

  • @mallikapanjwani3987
    @mallikapanjwani3987 2 года назад +1

    Thank you so much, you made Angular learning so easy

  • @rowdyghatkar
    @rowdyghatkar 3 года назад +1

    Any Practical use case of this?

    • @nagireddy1705
      @nagireddy1705 3 года назад

      yes, to collect required data before reaching component.

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

      There was a usecase in my job where we needed to implement it. Basically, we have a rotative banner (carousel) which gathers info from a mongo database. We are using the swiper library to display de carousel and it must not load before the data is fetched from the database. So, we used a resolve guard to get all the info we need (images, text to display, configuration, etc) and only then we to the route of the swiper component.

  • @charan5934
    @charan5934 3 года назад

    what if the call fails in resolve? can we handle it in component ?

  • @mmasif
    @mmasif 3 года назад

    instead of ng g g , we should be saying ng g r

  • @sorrybuddy4460
    @sorrybuddy4460 2 года назад

    Kindly help sir data is showing in console but not in vew.
    I have tried all posible ways its only showing dot and when am printing the object its showing object but when calling keys of api not showing anything

  • @nermenyehia5266
    @nermenyehia5266 3 года назад +2

    Hello, Please could you continue Mean Stack series, Thanks In Advance

    • @ARCTutorials
      @ARCTutorials  3 года назад

      Hi Nermen. Yes continuing that series as well

  • @jayakumar2927
    @jayakumar2927 3 года назад +1

    Routing part error come

  • @jayakumar2927
    @jayakumar2927 3 года назад

    Source code