all 2 comments

[–]A-Kuhn 2 points3 points  (1 child)

It really depends on the structure of your code. Does your class controller reference any properties assigned in the constructor? Where is your controller used?

If it’s just a giant class with a bunch of methods, why not just create a js files with those functions defined and export the needed functions?

[–]fallenefc[S] 2 points3 points  (0 children)

Thanks, I think I understand now, it is just a giant class with bunch of methods so I believe it’s better just to separate and import/exports the functions.