I would like that when an element is loaded in the for loop a function is automatically executed. my code
I want when the canvas element is loaded. That then the function viewSparkling is called.
Using interpolation you can call a function like
{{viewSparkling()}} see this link for more