720kb / angular-tooltips

Angularjs tooltips module, add tooltips to your elements - https://720kb.github.io/angular-tooltips
351 stars 157 forks source link

Proper module export, instead of the '720kb.tooltips' string #186

Closed KatFishSnake closed 7 years ago

KatFishSnake commented 7 years ago

Currently we use ES6 import syntax to get the modules we need for our main app its very convenient as we can name them however we want:

screen shot 2016-11-22 at 6 37 02 pm

and to utilize similar syntax for non-module exporting packages we have to hack around with conditionals like this:

screen shot 2016-11-22 at 6 39 49 pm

so can you please address it and properly export module. I would think even simple

require('./dist/angular-tooltips');
module.exports = '720kb.tooltips';

would work

45kb commented 7 years ago

Hi @KatFishSnake this https://github.com/720kb/angular-tooltips/blob/master/index.js doesn't work?

KatFishSnake commented 7 years ago

Oghhh, thats right, thanks a lot, really not sure what was wrong before, worked on second try