ngToast
ngToast copied to clipboard
Export the name of the module (webpack)
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
// cool syntax
angular.module('app', [require('angular-resource')]);
// i dont like this one
require('angular-resource');
angular.module('app', ['ngResource']);
I noticed that ngToast
returns nothing (Object{}
), can we make it return the string "ngToast"
?
+1