If you are using the "controller as" syntax, and you should be using the "controller as" syntax, you will want it to be consistent in your Angular state modules as well as your Angular component directives. With the bindToController
property on the directive definition object, this is easy to accomplish.
nice snippet!