I am trying to make an angular module created inside a meteor package become visible to my application. Below are the steps I performed:
1) create a package with the file mod-1.ng that registers a module
angular.module('mod-1', []);
2) added the file through package.js
Package.onUse(function(api) {
api.addFiles(['mod-1.ng'], ['client']);
});
3) included the module dependency on my application code
angular.module('my-app', ['mod-1']);
Angular complains upon application startup
Error: [$injector:nomod] Module 'mod-1' is not available! (...)
How can I make this angular module available to my application ?
EDIT: this repository link may help reproduce the problem: https://github.com/ccortezia/angular-meteor-packaged-modules/tree/problem-1