Suppose I need some generic object which is not dependent on AngularJS (e.g. specific collection with some special behaviours implementedd).
I could implement it completely outside AngularJS and use it in services/controllers then. I could also do it as service/factory and use it in other components.
I don't know if it is good or bad practice to write write code outside of AngularJS and then use it in the app. One big win is that while testing such code it's easier as it doesn't require AngularJS dependencies.
Do you keep whole application code in the AngularJS world in your apps?