Skip to content
Nathan Walker edited this page Feb 23, 2016 · 9 revisions

How to add to different seed projects:

Import into your component using this path:

import {DragulaService, Dragula} from 'ng2-dragula/ng2-dragula';

In tools/config.ts, add dragula to the following:

// ----------------
// SystemsJS Configuration.
const SYSTEM_CONFIG_DEV = {
  defaultJSExtensions: true,
  paths: {
    [BOOTSTRAP_MODULE]: `${APP_BASE}${BOOTSTRAP_MODULE}`,
    'angular2/*': `${APP_BASE}angular2/*`,
    'rxjs/*': `${APP_BASE}rxjs/*`,
    'dragula': `${APP_BASE}node_modules/dragula/dist/dragula.min`,
    '*': `${APP_BASE}node_modules/*`
  },
  packages: {
    angular2: { defaultExtension: false },
    rxjs: { defaultExtension: false }
  }
};

export const SYSTEM_BUILDER_CONFIG = {
  defaultJSExtensions: true,
  paths: {
    [`${TMP_DIR}/*`]: `${TMP_DIR}/*`,
    'dragula': `node_modules/dragula/dist/dragula.min.js`,
    '*': 'node_modules/*'
  }
};
Clone this wiki locally