Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.
This repository was archived by the owner on Nov 11, 2022. It is now read-only.

Export the name of the module (webpack) #83

Description

@Oza94

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions