Ionic 2 Shrinking Header Directive

I just blogged on how to create an ionic 2 shrinking header directive here


i will try it ASAP, i just needed it :slight_smile:

Hi, im testing this but i cant get it to work, the header is not shrinking. :frowning:

Clone the repo here

1 Like

Well, If u have a menu, you need to use getElementsByClassName() in the directive and put the class in the header you want to shrink, because the getElementsByTagName() will get the header of the menu instead of the header of the active page.

Iā€™m very thankful with you for sharing this beautiful shrinking header, wish i could like this post a thousand times.