Search on nested object issue


#1

can anyone here please guide how touse the search component in a nested objects such as :

users:[ { 
          user1: {  firstname: 'John',
           lastname 'Doe'
       roles: {

         role1: 'Manager',
       role2: 'Admin'
    },

 user2: {  firstname: 'Jane',
    lastname 'Doe'
   roles: {

       role1: 'Secretary',
       role2: 'stadf'
    }
  }]

Thank in advance for helping


#2

never mind I have found a solution how to do it.


#3

Please contribute to the community and share the solution.


#4

ok I will share it later


#5

please see here what helped me solve my issue https://stackoverflow.com/questions/45938499/ionic-3-filter-nested-json-with-ionic-searchbar