Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 693 Bytes

File metadata and controls

25 lines (18 loc) · 693 Bytes

ionic-scrolling-header

An angular directive to make the header hide with scrolling

Usage

  • npm install ionic-scrolling-header --save

  • add to your module import {ScrollingHeaderModule} from 'ionic-scrolling-header';

  • add @ViewChild(Content) content: Content; in your component

  • and add in your template

<ion-header [scrollingHeader]='content'> <ion-navbar> <ion-title> Contact </ion-title> </ion-navbar> </ion-header>

  • :) good to go

Demo

Plugin preview