~/talk

Vue Code-Shaving: Shorthands to a Cleaner Template Block

Talkat Vue.js Nation 2025 · 2025-01-29..01-30· [frontend-architecture, vue]
slides:none on file

A short demo refactors a single-file component template that renders an Avatar with two props (src and alt) and shows three concrete edits that still run: replace v-bind with the : shorthand, stop writing the props. prefix when binding parent props, and on Vue v3.4 remove the attribute entirely when the child prop name equals the variable name. The demo project compiles and the Avatar still displays after each step.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.