How to create a search filter with Ionic Angular & ion-searchbar

Sdílet
Vložit
  • čas přidán 8. 09. 2024
  • In this Ionic Angular Search Filter tutorial, I am going to show you how to create a search filter using ion-searchbar and ng2-search-filter. A search filter is a very useful feature that improves UX user experience in your Ionic mobile app by making it easier to navigate very large lists of information. When we are done, a user will be able to enter a search term in the search bar and the list will be filtered so that it only includes entries that contain the search term.
    Support codeswag on Patreon - / codeswag
    Social Media Links
    -------------------------------
    Facebook - / codeswag.co.uk
    Twitter - / charisthecoder
    Instagram - / codeswag.co.uk
    Support codeswag on Patreon - / codeswag
    Please support this channel by buying some awesome swag & tech gadgets for yourself or a loved one from our online store at www.codeswag.co.uk/shop

Komentáře • 45

  • @JoaoPedro-bh6ti
    @JoaoPedro-bh6ti Před 2 lety +1

    cheers m8, google actually suggesting something useful

    • @CodeSwag
      @CodeSwag  Před 2 lety

      Glad you enjoyed it! Please do subscribe

  • @CinemaVertigo4k
    @CinemaVertigo4k Před 3 lety +3

    Absolute quick tutorial .. masive respect

  • @sidsss2036
    @sidsss2036 Před rokem +1

    It Works :) but what if, user inputs "TEXT" that are not present in the list, then show "No Result Found". How can we do? Help!

  • @leopoldobarzi1070
    @leopoldobarzi1070 Před 3 lety +5

    You’re a great teacher! Thank u very much!!!

    • @CodeSwag
      @CodeSwag  Před 3 lety +1

      You are most welcome Leopoldo!

  • @alejandrorodriguez5254
    @alejandrorodriguez5254 Před 2 lety +3

    Just what i needed, so simple. Thank you!!

  • @rampage241
    @rampage241 Před 3 lety +3

    Exactly what I needed! Thank you so much.

  • @steveg5139
    @steveg5139 Před 2 lety +2

    very simple and it works, great!

    • @CodeSwag
      @CodeSwag  Před 2 lety

      Thanks for watching Steve. Please subscribe for more and click the bell icon to get notifications 😊

  • @chidochemoyochisweto6708
    @chidochemoyochisweto6708 Před 3 lety +3

    Very enlightening!

  • @anicetsedogo3173
    @anicetsedogo3173 Před 2 lety

    thank you for this short important tutorial everything was clear.

  • @faqruddinmohammad1411
    @faqruddinmohammad1411 Před 2 lety

    Great Tutorial. Please I need this as drop-down selection with search enabled.

  • @JISNA_MJ
    @JISNA_MJ Před 2 lety +1

    Thank you so much sir

  • @mateusribeiro8515
    @mateusribeiro8515 Před 3 lety +1

    Thank you very much!

    • @CodeSwag
      @CodeSwag  Před 3 lety

      Glad you enjoyed the video Mateus!

  • @GastonIbarrolaHeer
    @GastonIbarrolaHeer Před 2 lety +1

    Thanks a lot!

    • @CodeSwag
      @CodeSwag  Před 2 lety

      You are most welcome 😊

  • @abdelmatinesfar9927
    @abdelmatinesfar9927 Před rokem

    Hello, may you upload a video about filtering on particular field, best practices(not getting all the data in the table) and using a real back-end service would be really appreciated (just a simple mysql table would be enough). thanx in advance!!

  • @andreloureiro4447
    @andreloureiro4447 Před 2 lety +1

    simple and direct

    • @CodeSwag
      @CodeSwag  Před 2 lety +1

      Thanks for watching, please subscribe

    • @andreloureiro4447
      @andreloureiro4447 Před 2 lety +1

      @@CodeSwag already did 😉

    • @CodeSwag
      @CodeSwag  Před 2 lety

      New Tutorial coming on Thursday on how to create a weather app using Ionic 6

  • @LeandroTercette
    @LeandroTercette Před 3 lety +1

    Take my like !

  • @davidforero2229
    @davidforero2229 Před 2 lety +1

    thanks bro

    • @CodeSwag
      @CodeSwag  Před 2 lety

      You're welcome! Please like & subscribe

  • @PaulSebastianM
    @PaulSebastianM Před 3 lety +2

    11:08 And how does 'filter' known which property to filter on? Because employee is an object, not a primitive type like a string or number.

    • @CodeSwag
      @CodeSwag  Před 3 lety +4

      It filters according to all the properties in the employee object

  • @ahmadfadli2935
    @ahmadfadli2935 Před 2 lety +1

    hi this is a good tutorial!! but I want to know how to make each employee section clickable? use routerlink?

    • @CodeSwag
      @CodeSwag  Před 2 lety

      Yes. You can use routerlink or add a click event that you hook up to a methon in your class file

  • @awillmelodies
    @awillmelodies Před 2 lety +1

    hello, how can I display a simple message like "no record found" if search filter didn't found any records

    • @CodeSwag
      @CodeSwag  Před 2 lety +1

      You can try an if statement that checks if the array is empty, if so you display a toast saying "no record found"

  • @asyraf7985
    @asyraf7985 Před 10 měsíci

    is this still can be use right now?

  • @mescalito2
    @mescalito2 Před 3 lety

    Hi! do you know how can I share a file from an Android App to an Ionic/Capacitor App? the PWA option is called "share target" but I'm looking to do the same for a native Android-Ionic-Capacitor app, by any chance do you know how to do that?

  • @lonelyboy4746
    @lonelyboy4746 Před 2 lety

    I can not search text with first letter capital => ex : 'Jane'

  • @faizhaikal6868
    @faizhaikal6868 Před 3 lety +1

    Can you share the source code

    • @CodeSwag
      @CodeSwag  Před 3 lety +1

      codeswag.net/how-to-create-a-search-filter-using-ionic-angular-ng2-search-filter/

  • @jhonfredyriascosquesada3667

    Thank You!!