So i'm using this tool
https://www.npmjs.com/package/angular-cd-timer
and I've added it to my navbar. This navbar appears in 8 pages or so, but I just want the timer to be visible and works in 4 different pages.
The structure of the component in html
<cd-timer [countdown]="true" [startTime]="300" [endTime]="0" format="ms" (onComplete)="timerEnd()"
class="timerStyle"></cd-timer>
What I want! I wan to set this values like startTime,endTime on typeScript, and for each page have different values, and for the pages that I do not want to appear just make it invisible.
How do I do this? And it would be best to make all the code on the navbar component where this code lies, or in each page that I want it to function?