RC1 - Search bar "undefined"


After upgrading to nightly (RC1) ,searchbar placeholder shows “undefined”. After focus, the placeholder display proper text

<ion-searchbar primary [(ngModel)]=“queryText” (ionInput)=“getItems($event)” (ionFocus)=“searchInFocus()” placeholder=“Search”


having the same issue


I was able to fix it by my initializing the ngmodel variable to blank text in the constructor.


It solved my issue. Thanks


how to set blank text??


class SearchPage {

searchQuery: string = ‘’; // this is ur portion. It should be same as ngmodel in ion-searchbar
items: string[];

constructor() {

initializeItems() {