title: How can I get a Countdown Timer to work in Angular 10
body: <p>I am attempting to create an Angular-Nativescript shared app that executes some function when a timer reaches zero.
  I would also like the timer to restart/reset when the end value is changed.</p>
  <p>In Angular 9, this functionality was working with the <a href="https://www.npmjs.com/package/angular-countdown-timer" rel="nofollow noreferrer">angular-countdown-timer</a> package.</p>
  <p>However, since upgrading to Angular 10, I can't get past the <code>ModuleWithProviders</code> requiring some generic type issue.</p>
  <p>I have also tried using <a href="https://www.npmjs.com/package/angular8-countdown-timer" rel="nofollow noreferrer">angular8-countdown-timer</a> which works when the end value is set on page load but not afterwards (even though the end value in the component is changing).</p>
  <p>I also tried some of the older packages like <a href="https://www.npmjs.com/package/ngx-countdown-timer-date" rel="nofollow noreferrer">ngx-countdown-timer</a> but no joy as they general fall foul of the <code>ModuleWithProviders</code> restriction.</p>
  <p>I've tried using <code>ModuleWithProviders&lt;any&gt;</code> and <code>ModuleWithProviders&lt;unknown&gt;</code> as I've seen suggested in similar posts but the compiler just laughs in my face.</p>
  <p>Any help with any of the above or even a way to contact the authors would be appreciated.</p>