hello everyone i jusy wanna know how to call a perent function from a child component i've tried to use the $parent to call the perent method but i have this error typeError: _this.$parent.forceRender is not a function here's the parent method that i'm trying to call
methods: {
forceRender() {
this.componentKey += 1
}
},
and here's the child component as you can see i'm trying to call the parent method using the $parent
this.$parent.forceRender()