DEV Community

Discussion on: 30 Days of Vue - Methods and Computed Properties

Collapse
 
rokkoo profile image
Alfonso

Hi, nice post!
Can you explain deeply about "should be used as a property"
thanx!

Collapse
 
djirdehh_93 profile image
Hassan Djirdeh

Thank you so much.

Yeah that wasn’t phrased perfectly. Essentially, it’s easiest to look at computed properties like any other data property when intended to be used on the template. We don’t (preferably) ever pass parameters and we simply just bind it’s value with the help of the Mustache Syntax and/or the v-bind directive.

Hopefully that clears it up, but do let me know if not :).