I’m trying to filter a list from an input in my app’s header bar, but the filter doesn’t work if the input is in the header. If I move the input to the ion-content in the view to which the data is bound then it works.
Yeah, I can bind the data to $rootScope but then the search model/filter never leaves its child scope.
My “solution” was to initialize $rootScope.search = {}; and then it “worked,” but it feels like an ugly hack and I’m scratching my head thinking if there’s a more angular way to do it.