I was looking to create a decorator to automatically call module methods on mounting a module, so I forked the repo here and added some lines to src/module-factory and src/index.ts. I also added src/onload.ts, which is basically an adaptation of src/actions.ts.
My changes basically add support for an @Onload method decorator and has worked in my tests. I was hoping that someone could review this as I believe it adds an interesting feature.
I was looking to create a decorator to automatically call module methods on mounting a module, so I forked the repo here and added some lines to
src/module-factory
andsrc/index.ts
. I also addedsrc/onload.ts
, which is basically an adaptation ofsrc/actions.ts
.My changes basically add support for an
@Onload
method decorator and has worked in my tests. I was hoping that someone could review this as I believe it adds an interesting feature.Thanks.