0👍
I have made few changes in the script
Hope this is what you are looking for.
- Kept
steps: 1,
as it is mandatory to initialize the script. - I have hardcoded the value to
2
in thestep
in yourmounted()
function but it is working with dynamically rendered data.
Source:stackexchange.com