I think that's fine, it needs to be accessible outside of angular and I don't see any one overriding this global (hopefully).