Starting at a new job I have just inherited a previous developer's not-at-all-documented and weirdly-structured Ionic project. Long story short, it has come to my attention that a simple directive like this (generated using McFly Generator, although I have tried any number of ways of structuring and including the directive):