Category · 59 articles

Script

Articles in the category Script.

2022

15 entries

Vue Tip: Typing Template Refs With TypeScript

Template refs only exist after the component is mounted. Thus, it’s necessary to type template refs with a union type that includes the DOM element type as well as null.

Vue tip1 minTemplateScript

Vue Tip: Delay Loading Appearance of Spinner

Eager delay spinners are not a good user experience. They can make a snappy user interface feel slower. We want delay spinners to appear only after a perceivable delay.

Vue tip1 minTemplateScript

Vue Tip: Use Two Script Blocks

<script setup> can be used alongside normal <script>. A normal <script> may be needed in special cases.

Vue tip1 minScript

2021

4 entries
Page 3 of 3