Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : How to implement dependecy for not global module

$
0
0
That is the proper way to set the dependency. Probably you want to set up a path for your bootstrap:

  1. paths: {
  2.   "bootstrap/*.js": "bower_components/bootstrap/js/bootstrap-*.js"
  3. }
Then you can simple require("bootstrap/alert");

SystemJS is going to implement wildcard meta config so you can do something like this:

  1. meta: {
  2.   "bootstrap/*": {
  3.     deps: ["jquery"]
  4.   }
  5. }

But for now you have to define them individually.

Viewing all articles
Browse latest Browse all 3491

Trending Articles