Mixins as class decorators in typescript/angular2
Danylo Mylian

nice article! I noticed something while trying it out. when the Mixin function traverses over all own property names with Object.getOwnPropertyNames you will not only get the functions you would like to “borrow”, but also the constructor will be mixed in… I don’t think that’s what you would want. A simple if (name !== 'constructor')would fix that :)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.