Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES6 Support - Export module so it can be used in ES6 Imports #19

Open
gfargo opened this issue Dec 16, 2016 · 2 comments
Open

ES6 Support - Export module so it can be used in ES6 Imports #19

gfargo opened this issue Dec 16, 2016 · 2 comments

Comments

@gfargo
Copy link

gfargo commented Dec 16, 2016

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 ;)

@gfargo 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 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
@jellekralt
Copy link
Owner

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 :)

@gfargo
Copy link
Author

gfargo commented Dec 19, 2016

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.

@github-staff github-staff deleted a comment from vishalgupta1987 Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants