title: Ionic 2 slides autoplay
body: <p>I am using ionic2.</p>
  
  <p>Here is my template</p>
  
  <pre><code>&lt;ion-slides autoplay="5000" loop="true" speed="500" pager="true"&gt;
  
      &lt;ion-slide   class="slider1"&gt;
              &lt;h1&gt;My &lt;span&gt;Neighbours&lt;/span&gt;&lt;/h1&gt;
              &lt;p&gt;My Neighbours is a directory of people who live in the building and have chosen to&lt;/p&gt;
  
              &lt;div class="homepeople"&gt;
                  &lt;div class="home"&gt;&lt;/div&gt;
                  &lt;div class="people"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/ion-slide&gt;
  
          &lt;ion-slide class="slider2"&gt;
              &lt;h1&gt;CCTV &lt;span&gt;Monitoring&lt;/span&gt;&lt;/h1&gt;
              &lt;p&gt;Residents/Managers can view selected CCTV&lt;/p&gt;
              &lt;div class="iconholder"&gt;
                  &lt;img src="./assets/images/white CCTV Monitoring.svg" alt="Image"&gt;
              &lt;/div&gt;
          &lt;/ion-slide&gt;
  
          &lt;ion-slide class="slider3"&gt;
              &lt;h1&gt;Emergency&lt;/h1&gt;
              &lt;p&gt;Security / Reception / Police / Ambulance / Fire&lt;/p&gt;
              &lt;div class="iconholder"&gt;
                  &lt;div class="iconholder-blk"&gt;
                     &lt;img src="./assets/images/white emergency icon.svg" alt="Image"&gt;
                  &lt;/div&gt;
                  &lt;div class="iconholder-blk"&gt;
                      &lt;img src="./assets/images/white Alarm.svg" alt="Image"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;button ion-button outline small (click)="navHome()"&gt;
                  Start using the app
              &lt;/button&gt;
          &lt;/ion-slide&gt;  
   &lt;/ion-slides&gt;
  </code></pre>
  
  <p>It's work perfect.But i need loop does not continue on when last slide.</p>
  
  <p>How can i do this.</p>
  
  <p>Kindly advice me,</p>
  
  <p>Thanks</p>