title: Ionic onclick scroll to bottom of a page not work
body: <p>I am using Ionic 3. When the user clicks on a button it should scroll down to the bottom of the page. Here is the code that I tried : </p>
  
  <pre><code>&lt;div (click)='scrollDown()'&gt;Change User Name&lt;/div&gt;
  
  
  &lt;div&gt;Now you can change your user name &lt;div&gt;
  </code></pre>
  
  <p>Logic : </p>
  
  <pre><code> scrollDown() {
      window.scrollTo(0, 500);
    }
  </code></pre>