The function used for listening gets called with one parameter which is the last char which was rendered.
This can be handy if special effects should be executed after a char was rendered.
I used this to create a typing sound effect and used for each character a different typing sound :)
An event is now emitted after each single char which was typed.
<vue-typer @typed-char="onCharTyped" text='hello'/>
function onCharTyped(lastCharTyped){}
The function used for listening gets called with one parameter which is the last char which was rendered.
This can be handy if special effects should be executed after a char was rendered. I used this to create a typing sound effect and used for each character a different typing sound :)