You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can tell; this currently isn't setup to export the actual module. I've been trying to work with this within a Webpack project but because nothing is actually exported from the file the import method fails.
I've tried the following so far with no success;
import * as ngDragScroll from 'angular-drag-scroll';
import * from 'angular-drag-scroll';
import 'ng-drag-scroll';
Apologies if this is a problem that exists between the keyboard and chair ;)
The text was updated successfully, but these errors were encountered:
gfargo
changed the title
ES6 Support - Export the
ES6 Support - Export the Module so it can be used in ES6 Imports
Dec 16, 2016
gfargo
changed the title
ES6 Support - Export the Module so it can be used in ES6 Imports
ES6 Support - Export module so it can be used in ES6 Imports
Dec 16, 2016
This is currently not supported indeed. Just for my info, why would you want to import a directive? I've never worked with angular 1.* with modules, so I was just wondering what the use case is :). I'll see if this is something I can implement easily. You're always welcome to create a PR of course :)
Totally! If I can get around to it this break I'll try to write the additions myself. Appreciate you being open to the change.
Unless i'm misunderstanding your reply, the larger use case is to support ES6 import, specifically when trying to incorporate this module into a project that uses Webpack as the build tool.
As far as I can tell; this currently isn't setup to export the actual module. I've been trying to work with this within a Webpack project but because nothing is actually exported from the file the
import
method fails.I've tried the following so far with no success;
Apologies if this is a problem that exists between the keyboard and chair ;)
The text was updated successfully, but these errors were encountered: