Angular 8 Searching , Sorting & Pagination | Fetch & Display Json Data into a Table

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 มิ.ย. 2020
  • In this video you will learn how to search , sort , and do pagination in Angular.
    For Searching , Sorting and pagination Install below packages.
    npm i ng2-search-filter
    npm i ng2-order-pipe
    npm i ngx-pagination

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

  • @Mohamed-uf5jh
    @Mohamed-uf5jh 3 ปีที่แล้ว

    Great tutorial all in one video Thanks sir!

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

    This was a great tutorial for this functionality and helped me a lot. I just wish he'd stopped for a little bit before transitioning to other pages.

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

    Run this to install all dependencies:
    npm install ng2-order-pipe ng2-search-filter ngx-pagination --save

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

    That was a great tutorials!!. Thank you

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

    nice video sir, thank you for the knowledge , next time please explain once in the video it will be of a great help for the freshers

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

    Thank you for this short and good tutorial

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

    Very helpful
    And
    In a so easy way
    Thank you so much

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

    Great video!

  • @AbhishekSharma-oq2iy
    @AbhishekSharma-oq2iy ปีที่แล้ว

    So wonderful explanation , thanks

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

    thank you very much, great video

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

    Great tutorial , thanks

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

    Tip: Put the pagination-controls outside of the table or you'll blow out the size of the first column.

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

    its very helpful , thanks a lot

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

    Good ! impirtant videos

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

    Thanks for this video🤩

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

    Thank's. It's very usefull !!!

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

    bhut accha video bhai

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

    everything working fine nice.

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

    Woo it's great ...

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

    Beautiful...

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

    Thank you very much for this tutorial, but in the search part I am having this error (this.users.filter is not a function), can you help me, please.

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

    Very nice explanation with live demo. If possible can you please share the code too.

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

    Nice tutorial thanks

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

    Thank you very much

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

    Some nice content, important information. In future, consider the pace of the content. For some parts have snippets prepared to avoid having to watch you type out simple content. Then slow down for more complex items. Link to a repo with code too. Thanks.

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

    Well explained

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

    when i use orderBy pipe it is throwing error pipe is not found
    can any one tell this

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

    merci thanks thank you

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

    super sir 😍😍

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

    Great

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

    I get the error
    TypeError: undefined is not a function (near '...this.users.filter...') ,sounds like its throwing of on the res function ?

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

    This is good video sir can you help me for searching rage between 4 to 10 or 15 to 20 any rage data using id

  • @logospod-cast9574
    @logospod-cast9574 2 ปีที่แล้ว

    When I write something to search the first time, works very well, but: When I erase a letter, but put the erased letter again, then don`t search anything.
    How can I fix the "delete letters" issue?
    Thanks

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

    Great video to explain the bunch of thing but the search does not work with pagination specially when you are on second page and search a keyword, If it works for you could you please upload a repo for references. GREAT WORK ANYWAY

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

    when i am searching for value which is in paginator 2 i should get value in paginator 1 only i don't want to change paginator for that value which i am searching in paginator 1
    can you help on this

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

    please when make any example explain the modules u used before test such install ngx-order-pipe an ..... thanks god job dear

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

    Awesome Great....Can you please provide Source code ?????

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

    Nice

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

    great video
    one Problem
    I have 1 array for example
    A:{
    name: "Alpha"
    ItemOfB:[ 1 ]
    }
    and second array
    B{
    name: "Beta"
    item1: { name : item1, id : 0}
    Item2: { name : item2, id : 1}
    Item3: { name : item3, id : 2}
    }
    //
    Import class Bmodel ;
    Export class AModel {
    name:string;
    ItemOfB: Bmodel[]
    }
    //
    Export class Bmodel{
    item1: { name : string, id : number}
    Item2: { name : string, id : number}
    Item3: { name : string, id : number}
    }
    I want to access element of array B and display it where im getting response of array A . But im only getting [1] from itemofB , but not the actual index of array B and its value ( which is Item2: { name : item2, id : 1}) . how do i extract json value from another array hosted on different servers - suppose A is hosted on 3000 and B at 3001 and im linking them from their Models only

  • @logospod-cast9574
    @logospod-cast9574 2 ปีที่แล้ว

    The console show me after install the libraries
    11 vulnerabilities (5 moderate, 5 high, 1 critical)
    How can I fix them? Thanks

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

    Can you please extend video for particular search from like only 5 row between letter M to R like that ..and also delete any particular column ..n how to do ascending descending order

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

    Great video can you please share source code of this!! Any git or Google drive link to download the same!!

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

    @codo is it called API integration?

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

    merci beaucoup pour ce tuto sinon moi jai une erreur error TS2339: Property
    'filter' does not exist on type 'Observable

  • @savage-qw4gk
    @savage-qw4gk 3 ปีที่แล้ว

    i tried only search it's not working followed all steps but still nothing shows I installed and imported packages still

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

    Hi
    How to set show record count option and how to change the record count like 10,20,50,100...

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

    Hi Bro, Can you please provide me CSS for this table ? Btw thanx alot your video is very helpful for me.

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

    hi, thanku for tutorial but i'm having an erreur can you help me plz .

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

      Hii can please you elaborate the error so that i can get better idea.
      For now please check your user.ts once. It seems you haven't pass required parameters in constructor.

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

    Why search does not work through out the paginated data?

  • @ManishSharma-wz3gs
    @ManishSharma-wz3gs 3 ปีที่แล้ว

    thanks the Video and
    can we add pipe to search for more than one column instead, currently it only searching one column only

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

      I searched two fields from a single input without a pipe. In Search() in the filter arrow function just add another || (OR) condition.
      return res.yourfield1.toLocaleLowerCase().match(this.searchText.toLocaleLowerCase())
      || (res.manager != null && res.yourfield2.toLocaleLowerCase().match(this.searchText.toLocaleLowerCase()))
      I also check for null just in case because my project's json source had nulls. I changed some variable names from the video, but you'll work it out.
      If you use a pipe I think you could stuff up the ordering, but if anyone has it working that way, please reply.

    • @ManishSharma-wz3gs
      @ManishSharma-wz3gs 3 ปีที่แล้ว

      @@AussieAmigan thanks a lot yes working

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

      @@ManishSharma-wz3gs can you please share the exact code in which you have tried and got output.

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

      I tried the same way as leo mentioned but am not got the output..pls help me on this

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

    Dint understand why component.ts and user.ts both created
    We could add both in one file ? Like component. Ts

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

    Nice tutorial, what if you searching a field, the pagination still works?

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

      Thanks Franco!! & Yes It works.

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

      It works on page one if you switch to page 2 or 3 and then search it does not work, i think that fix can make it complete package video

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

      @@satishraizada5207
      Could you get the search to be on all pages? Sorry for my english haha

    • @user-oc5sd1jw4n
      @user-oc5sd1jw4n 3 ปีที่แล้ว

      @@satishraizada5207 you fix it?

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

      @@user-oc5sd1jw4n did you find the solution for searching on other pages?

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

    It's been 8 months
    Where r u?

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

    On url based data display.. not file.. how to create it.. please explain new for angular.. please... like "Jsonplaceholder"

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

    Pagination also getting error. Is there need any instalation

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

      You need to install ngx-pagination package.
      Please run below command
      npm i ngx-pagination

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

    Can u plz provide this code...

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

    Import{users} from ../_model/users I'm getting an error while imports what to do

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

    Type event is not assignable to type number ,error is cmg like this can anyone help me whn am using pagination

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

    Ng2SearchPipeModule & NgxPaginationModule does not work properly when used both

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

    no pipe found with orderBy error..
    you didnt show the orderby pipe code

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

    Thank you for Video. In sorting values are not getting properly sort

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

      Have you installed ng2-order-pipe ?

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

      @@codo124 Yes got my issue solved the numbers were in strings. Converted them to integers then sorting worked properly too.

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

    My fa fa-icon is not visible ?plz reply

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

      npm install font-awesome --save
      Then in angular.json you need to add "./node_modules/font-awesome/css/font-awesome.css" under styles.

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

    can i ask for the CSS

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

    Thanku for tutorial, but I'm having issue with searching, it is showing error with ngModel

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

      In order to use ngModel you need to import the FormsModule package in your app.module.ts.

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

    The Search doesn't work when you navigate to page 2

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

    How to sort two columns date and name

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

    How to display a message "Result is not found" if result is not there

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

    fucking nice

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

    If possible can you please share the code too.

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

    how to get that symbol in sorting

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

      npm install font-awesome (ignore all the ridiculous warnings that follow)
      Add ""./node_modules/font-awesome/css/font-awesome.css"" to styles under angular.json. (change css if you are using different style sheet system)
      Don't do any of the module imports that some of the other tutorials go into, as they aren't necessary for this functionality.

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

      You can use font-awesome or use a copy-paste symbol --> ᛨ ↕ ⮁

  • @ManishSharma-wz3gs
    @ManishSharma-wz3gs 3 ปีที่แล้ว

    sorting working fine but icon beside header isn't showing

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

    Hey,
    Can u provide source code

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

    You haven't defined orderby pipe anywhere

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

    Can you upload source code?

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

    You'd think in a tutorial with searching you'd spend more than 2 seconds on screen in the pipe you actually do it.

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

    error showing " No pipe found with name 'orderBy'. "

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

      install ngx-order-pipe

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

      @@chourabiseif8817 after installing ngx-order-pipe its still the same error No pipe found with name 'orderBy'

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

      Hey did u get solution????i have same issue

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

    I got error at reverse

  • @ashwanikumar-pk8ge
    @ashwanikumar-pk8ge 3 ปีที่แล้ว

    How to run This code .. ?

    • @ashwanikumar-pk8ge
      @ashwanikumar-pk8ge 3 ปีที่แล้ว

      I am not able to fetch the data

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

      ​@@ashwanikumar-pk8ge In order to get data from a .json file, you need to host it, or you can practice on dummy data from jsonplaceholder.typicode .com for example.

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

      @@ashwanikumar-pk8ge mee too..wt to do?

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

    May i know your name?

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

    Hello

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

    Share code

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

    Ye background music hi itna dala hai ki concentrate nahi hota

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

    Hey buddy good job!
    may i see ur github ? if you don't mind

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

    Where to get orderBy . Pipe not getting anywhere.
    I am getting order by.

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

      Run below command.
      npm i ng2-order-pipe

    • @Tony-uc8wq
      @Tony-uc8wq 3 ปีที่แล้ว

      @@jeromepaulson8483 I tried installing with ngx-order-pipe, and im still having trouble. Can I see how you solved this issue?

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

    Search isn't working

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

    Topic: Full stack javascript - Data Pagination and Filtering
    Good day,
    If I may humbly ask a little help, any hints, comments and suggestions are very much welcome, thank you in advance for all your help, please see question below, how do I code this?:
    /*
    Create the `showPage` function
    This function will create and insert/append the elements needed to display a "page" of nine students
    */
    /*
    Create the `addPagination` function
    This function will create and insert/append the elements needed for the pagination buttons
    */
    // Call functions

  • @HoaNguyen-oq7wl
    @HoaNguyen-oq7wl 3 ปีที่แล้ว

    lừa vl

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

    Dammit that was some horrible background elevator music🙄

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

    // npm i json-server
    // run json
    // json-server --watch db.json
    // json-server db.json
    // create json file
    // npx json-server --watch db.json

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

    Very nice explanation with live demo. If possible can you please share the code too.