Is is possible to hide header while typing?

can any one tell me that how can we hide header while typing ?
i am creating one message/chat app in which i fixed teatarea at bottom (footer) and when user type in it, i want to hide the header.

Thank You.

You might want to try $ionicNavBarDelegate.showBar(false).$ionicNavBarDelegate/

I’m not sure if this will work for you or not. Setup a CodePen sample and others might be able to dabble with it too.