An example of integration between angular, ionic, and require, inspired by directory-angular-ionic of Christophe Coenraets