Question · Vue.js course · Module 14: Directives & Plugins
Toast plugin - display duration
How do you implement toasts that automatically disappear after 3 seconds?
Answer options
- Using setTimeout to remove from the array
- Using CSS animation
- Using Vue lifecycle hooks
- Using requestAnimationFrame
You can check the correct answer by solving this task in the CodeWorlds game.