Ionic 2 - Getting text in search bar via the event after hitting enter?


#1

With this code is there a way to get the input from the searchbar by using $event only? I tried printing the event to console, but I couldn’t find the right field that contained the input. Will I have to rely on ngModel?
<ion-searchbar [(ngModel)]="searchInput" (search)="getLocation($event)">