Closed InsidersByte closed 8 years ago
For the npm package it would be useful if it exported the name of the module. For examples angular messages below.
require('./angular-messages'); module.exports = 'ngMessages';
This would allow you someone to do this.
import inView from 'angular-inview'; const appModule = angular.module('app', [inView]); export default appModule.name;
the module itself is exported. so what you can do is:
import ngInview from 'angular-inview'; const appModule = angular.module('app', [ngInview.name]);
For the npm package it would be useful if it exported the name of the module. For examples angular messages below.
This would allow you someone to do this.