-
Notifications
You must be signed in to change notification settings - Fork 404
Closed
Description
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
Labels
No labels