I am trying to implement search feature. Looks something like this. This is my parent component:
Once you click to Advanced it goes to modalController where you can select different filters:
I want to filter my search result by those filter by passing object called data. Facebook property should be either 1 or 0 and so on.
So for example one toggle is on, set data = { facebook = '1'}
So. I have an object in my parent component Search.ts
data = { search: ' ', facebook: ' ' };
And I want to update facebook property from childComponent once Facebook Allowed is toggled.
I am not sure what is the best way to do it?
Any ideas would be highly appreciated!