In this post I'm going to outline my approach on writing Directives for Angular 1.x releases. There's a lot of confusion around how and why and where to do things with Directives, but they are actually very simple once you grasp the concepts and separation ideas.
Full article