valor-software / ng2-dragula

Simple drag and drop with dragula
http://valor-software.com/ng2-dragula/
MIT License
1.91k stars 430 forks source link

Configuring ng2-dragula for system.js seed #89

Closed thomasbee closed 8 years ago

thomasbee commented 8 years ago

I fail to figure out how to configure ng2-dragula with the system.js seed https://github.com/mgechev/angular2-seed I understand there is a similar ticket but clearly describing the solution for this widespread seed would be nice I think.

Versions used: npm 3.3.12 node v5.1.0 MacOS 10.11.1 Chrome 48 Visual Studio Code Editor

Steps npm install dragula@3.6.3 ng2-dragula@1.1.0 --save Then, in a component, when I do import { Dragula, DragulaService} from 'ng2-dragula/ng2-dragula'; Note the full import path above. Is this correct or incorrect?

I get a runtime error where the browser tries to load dragula.js from http://localhost:5555/node_modules/dragula.js where obviously, the directory name is missing.

Questions

NathanWalker commented 8 years ago

Good idea @thomasbee, I will try to post instructions Monday/Tuesday :+1:

thomasbee commented 8 years ago

An update on this one: I tried mapping like this: `

Githubissues.
  • Githubissues is a development platform for aggregating issues.