According to the filename this is a directive.  Wondering if we ought to split this controller out of the file.  I tend to prefer one AngularJS "thing" per file where possible.