title: how to start and stop the count down timer using ngx-countdown using Angular
body: <p>Scenario: Here i am looking for a count down timer where the user passes some seconds and user presses start or stop for this
  <strong>i am using ngx-countdown timer</strong></p>
  <p>requirements:</p>
  <ol>
  <li>user give some custom seconds for the timer (this already done).</li>
  <li>By default how can i display start button and when user press start button then only stop button has to be displayed.</li>
  <li>here how can i stop the timer when the given seconds are over i mean when user give 60 seconds then it should stop after that and display a alert and user can also stop the timer.</li>
  </ol>
  <p>below is my code</p>
  <pre><code>  &lt;countdown [config]=&quot;{leftTime: timeData}&quot; (event)=&quot;handleEvent($event)&quot;&gt;&lt;/countdown&gt;
    `
  })
  export class AppComponent  {
    timeData = &quot;120&quot;
    constructor(){
  
    }
  
  handleEvent(event){
    console.log(event)
  }
  </code></pre>
  <p>below is my stackblitz url</p>
  <p><a href="https://stackblitz.com/edit/ngx-countdown-setup-bwdk4s?file=src/app/app.component.ts" rel="nofollow noreferrer">https://stackblitz.com/edit/ngx-countdown-setup-bwdk4s?file=src/app/app.component.ts</a></p>