Skip to content

[Request] Add support for Browserify #293

@jkjustjoshing

Description

@jkjustjoshing

When the AngularJS team releases angular-resource, angular-sanitize, etc, they include a file index.js at the root of the project that requires the actual js file, and then exports the module name. This allows you to require the library in the following way:

angular.module('myModule', [
    require('angular-resource'),
    require('angular-sanitize')
])

Since the dependency exports the angular module name, it is equivalent to writing:

angular.module('myModule', [
    'ngResource',
    'ngSanitize'
])

Think we could add this to angular-bootstrap-datetimepicker? I'll create a PR for this just in case you're up for adding it!

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