Currently, I am working on a galaxy simulation project using AngularJS and Threejs. My intention behind incorporating Angular JS is to grasp its functionality better and implement it in future projects as well.
However, I find myself struggling with determining the ideal location for my code. Considering that the threejs code is outputted to a canvas, should it reside in a directive? Or would it be more appropriate to handle most of the processing within the controller, while only adding DOM-specific code to the directive?
If you are interested, feel free to take a look at my organization attempts so far by visiting: https://github.com/donnielrt/galaxy/tree/873dba548d8d42820febeb4e69817f2e5fc5333c/app