[Vuejs]-How can i use a const of Vue methods inside a Vue template to show the const result?

0๐Ÿ‘

Is it possible to have the const "item" result in that alert body field?

My Answer is No, Why you want to bind constant in your HTML template ? As you already have item property in your data object. You can update the item value in that property instead of assigning that in const.

For Ex : this.item = 'item value' instead of const item = 'item value'

Leave a comment