Simple counter component example
-
Already in the DOM :
-
No attribute provided
=>
-
Set properties via attributes :
-
No attributes provided
=>
-
data-start="42"
=>
-
data-by="100"
=>
-
data-start="42" data-by="100"
=>
-
Dynamically attached to the DOM :
-
No properties & no attributes
=>
-
counter.start = 1000;
=>
-
count.setAttribute('start', '1000')
=>