ngTimepicker icon indicating copy to clipboard operation
ngTimepicker copied to clipboard

Cannot import the package using ES6 `import`

Open mayppong opened this issue 8 years ago • 0 comments

Because the name of the module being export in index.js isn't the same name as the angular module name used in the source files, it's not possible to import ngTimerpicker through the index.js file

import ngTimepicker from `ngTimepicker`;
angular.module('some_project', [ngTimepicker]);

The code above won't work unless index.js file is exporting the name jkuri.timepicker.

mayppong avatar May 11 '16 23:05 mayppong