ANGULAR 15 : DATA FILTER USING REST API

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • In this tutorial, we will see how to implement data filter in angular 10.
    We will use 2 api's for demonstration.
    We will bind a albumns API to a selectlist(Dropdownlist).
    We bind the "id" of the album as value field and "title" as the display field. When we select the selectlist, we will use the selected albumid as the input parameter to the second api ie. Photos api.
    The Photos API will accept a httpparam as albumid which is nothing but the selected alblum from the selectlist.
    We will use this to call the Photos API for that particular album.
    And we will display the returned result of the photos for that albumn in table format.
    #Angular 12 #Angular 13 #Angular 11 #Angular 15

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

  • @KimLetkeman
    @KimLetkeman 3 ปีที่แล้ว

    There is so much overhead to get the small bits of useful info directly related to filtering. Consider having the boilerplate ready and just filling in the relevant bits that retrieve filtered data.

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

    Superb Bro

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

    Hello, I followed your instructions and everything goes well until i select a value from the dropdown. Regarding of the selection in the dropdown list, il return all the images, instead of returning the ones taht match my album_id. and in console i get undefined Can you please help? Thank you very much!!

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

    thx man it was really helpfull

  • @vikhyatverma4016
    @vikhyatverma4016 3 ปีที่แล้ว

    Hello i want to do the same thing But on a list item ...
    How to do that...

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

    Thank you so much bro! You are so helpful xD

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

    Thx for this video but how can i do if i want to add 2 filter ? because here we just have 1 filter on the album, if i want to search a photo on his album and his thumbnail (the size) how can i do that ? please help me ! :D

  • @RameshKumar-yk5nr
    @RameshKumar-yk5nr 5 ปีที่แล้ว +2

    Bro make a video on session management for example if we press back button the previous page will show with data that what we wanted to see previously .....

    • @Links...
      @Links... 5 ปีที่แล้ว

      u need to store data of back page in the service and also need to provide this service in root or common module with current route from which we are doing back action

    • @RameshKumar-yk5nr
      @RameshKumar-yk5nr 5 ปีที่แล้ว

      @@Links... thank you I will do

  • @MS-pz7hr
    @MS-pz7hr 4 ปีที่แล้ว +1

    Thanks a lot for this video sir

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

    I tried everything and double check all the codes, I didn't get any error but the out put doesn't look the same I have the drop-down but it doesn't work.

    • @mukul13197
      @mukul13197 3 ปีที่แล้ว

      go to your api log - see what you are hitting - you may have used number or string in your models - maybe you are trying to hit Products?categoryid=2 but instead hitting Products?categoryid=%201 due to space and all . just check that

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

    🔥🙏

  • @mahaambalgan4564
    @mahaambalgan4564 4 ปีที่แล้ว

    Hi can you share me the whole code for your html? Because nothing is working on the dropdown when i tried it

  • @ananthakumarr537
    @ananthakumarr537 2 ปีที่แล้ว

    Hiii.... Can anyone help me bind data in select input (coming frm api) on click of edit...... On reactive form

  • @ShreyKothari2.0
    @ShreyKothari2.0 ปีที่แล้ว

    How to sort the data in drop-down alphabetically

  • @ananthakumarr537
    @ananthakumarr537 2 ปีที่แล้ว

    i got error
    title is undefinedDirector isundefined

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

    hi can you please share this code

  • @thiagoluiz4870
    @thiagoluiz4870 2 ปีที่แล้ว

    Only useful with FormsModule, if you're searching for a solution to ReactiveFormsModule, this ain't what you looking for

  • @xinyi8279
    @xinyi8279 4 ปีที่แล้ว

    How do i do the search without api?

    • @TechieOcean
      @TechieOcean  4 ปีที่แล้ว

      Yes. I will try to post a video on search on local cached data without api

  • @hanidjebbi4168
    @hanidjebbi4168 4 ปีที่แล้ว

    "e

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

    Whats with your voice lol

  • @khusikar676
    @khusikar676 2 ปีที่แล้ว

    Hiii.... Can anyone help me bind data in select input (coming frm api) on click of edit...... On reactive form

  • @Akhilashok97
    @Akhilashok97 4 ปีที่แล้ว

    Can you please share this code