The Vue child component is passed to the parent component, where currentTab is a variable. If this is not correct, how should I modify it?

v-on:Discussion="currentTab=comments"

want to write through an expression in the parent component, because there is only one assignment statement, and the quotation marks are incorrect. Do you know how to modify it?

May.21,2022

define method execution this.$emit ("emitMethod", "parameter")

in subcomponent methods

@ emitMethod= "parentMethod" in the parent component

then parentMethod (parameter) {} receives

in the parent component methods

is always executed in a subcomponent or once when you load it in a hook

call the method this.$parent.parentMethod (parameter) in the parent component in the child component

the variable parentdata in the parent component is bound with v-model
{{parentdata}}

methods: {

parentdata(item){
    renturn item
}

}


you can change it in this way

    <my-component v-on:Discussion = "currentTab = arguments[0]"></my-component>

which index value to take for arguments is linked to the location of the parameters passed within the component ~


@Discussion="((comments) => { this.currentTab = comments })"

the discussion = "currentTab=$event"

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9a9de-17ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9a9de-17ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?