Simple counter component example

Update properties via attributes :

With no attributes
With data-start="42"
With data-by="100"
With data-start="42" data-by="100"

Update properties directly :

No update (default values)
counter.start = 1000
counter.setAttribute('data-start', '1000')
counter.setAttribute('data-by', '2')
counter.properties = { by: 4, start: 42 }