title: OnScroll event Ionic 2
body: <p>Picking up when a user scroll on Ionic 2 is confusing me. I basically want to say, when a user scrolls down the page, do something.</p>
  
  <p>Any examples would be great.</p>
  
  <p>UPDATE: </p>
  
  <p>I have this in my constructor, so when the page scrolls I want to close the keyboard, due to it being left open and no other way to close.</p>
  
  <pre><code>import { Component, ViewChild } from '@angular/core';
  import { NavController, NavParams, Content } from 'ionic-angular';
  import { Keyboard } from '@ionic-native/keyboard';
  
  export class SearchPage {
  
    @ViewChild(Content)
    content:Content;
  
    constructor(public keyboard: Keyboard, public formBuilder: FormBuilder, public navCtrl: NavController, public navParams: NavParams, public apiAuthentication: ApiAuthentication, private http: Http) {
  
      this.content.ionScroll.subscribe((data)=&gt;{
        this.keyboard.close();
      });
    }
  }
  </code></pre>
  
  <p>However I get this error <code>Cannot read property 'ionScroll' of undefined</code> am i putting it in the wrong place?</p>