DEV Community

Discussion on: (An Approach to) Vue.js Template Variables

Collapse
 
loilo profile image
Florian Reuschel • Edited

Yes, this is the obvious one and should always be preferred where applicable.
Template variables are a better (as in "more ergonomical") fit when you don't need to process all the array items and don't want to duplicate logic.