Hacker News new | ask | show | jobs
by conradfr 4698 days ago
It's a problem I have in Angular since I've started using it. You put your data/model in a service, but you need some GUI elements to display the various states of these data, so you put html in the view, some helpers in the controller, maybe you create some custom filters too. At that point you start to think a directive would be better.

Maybe the solution is to make separate modules ?

I'm not good enough in Angular or Javascript to have figured out the best solution yet.