Scenario (DOM):
<div *ngFor="let one of many">
<span [innerHtml]="one"></span>
</div>
Scenario (Controller):
let many = [];
let timer = 60;
setInterval(() => timer--, 1000);
many.push("this is a selection WITH a {{timer}}");
many.push("this is a selection WITHOUT a timer");
So basically theres an array "many" which can have many strings created dynamically pushed into it and also some of the strings passed into "many" have countdowns and others do not. Is there a way to pass a model into the DOM via a string as shown above and have the timer update? And if its doable how can it be achieved.
I really hope this isnt one of those "gotchas" thats soooo obvious.
Gracias