ngToast icon indicating copy to clipboard operation
ngToast copied to clipboard

Export the name of the module (webpack)

Open Oza94 opened this issue 7 years ago • 1 comments

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" ?

Oza94 avatar Jul 11 '16 16:07 Oza94

+1

Shane-E avatar Dec 01 '16 20:12 Shane-E