I am trying to build a DataComponent base that will contain the general functionality needed by many other components that deal with basic CRUD objects.
Still i
How to achieve method inheritance as I am trying to do? Is it possible in Vue.js?
Edit
If I change the method signature in data-component.js as follows, passing the instance of the inheriting component ("this") as vm, it works
And then in the inheriting component
By passing an instance ("this") to methods like vm, it works as expected.
I am not sure if this is the best way to do this. But then this is certainly not inheritance. How to use inheritance to achieve what I'm trying to do?
source share