Ionic search

I want to make the search-bar become like this.
note:
picture 1 is before (my cursor on icon search)
picture 2 is after (and it becomes search bar)

Is it possible to make if we click the search icon and it becomes search-bar?

Yes, just add a show/hide content inside an ion-toolbar.

use ionic alert to get view like that: ion-alert