AngularJs Decorators Provides an effective way to extend functions in services without affecting the original service. How does one emulate this behavior with javascript classes?
I have 2 libraries. One containing common logic and UI elements and another more specific to the page I am building. I have to extend the class written in the library containing the core logic in my specific one and then use the extended version's functions from the core library. I do understand this might seem like a faulty design, but the same could be achieved with decorators in AngularJS.However, I am using plain ES6 Classes. So how do I go about it?