I'm using webpack with angular so I require() angular librairies. Angular and angular ui have a cool convention, when you require the module it returns its name (e.g. angular-resource for ngResource).
This allow using syntax such as
// cool syntax
angular.module('app', [require('angular-resource')]);
// i dont like this one
require('angular-resource');
angular.module('app', ['ngResource']);
Is there particular reason for angular-hotkeys to export MouseTrap object ?
Hello,
I'm using webpack with angular so I
require()
angular librairies. Angular and angular ui have a cool convention, when you require the module it returns its name (e.g.angular-resource
for ngResource).This allow using syntax such as
Is there particular reason for
angular-hotkeys
to exportMouseTrap
object ?