I try to use this (https://github.com/gocardless/es6-angularjs/blob/master/README.md) as a starting point and then include the bootstrap javascript code. In order to open a modal
But the only thing that happens is:
Potentially unhandled rejection [3] Error loading "components/bootstrap/dist/js" at http://localhost:3010/components/bootstrap/dist/js.js
Error loading "components/bootstrap/dist/js" from "app-compiled/bootstrap" at http://localhost:3010/app-compiled/bootstrap.js
Not Found: http://localhost:3010/components/bootstrap/dist/js.js (WARNING: non-Error used)
I added this to the main.js:
import 'bootstrap-js';
//TODO please explain to me why not working
and this to the loader.config.js file:
System.config({
meta: {
...,
'components/bootstrap/dist/js':{ format: 'global', export: 'bootstrap'}
},
map: {
....,
'bootstrap-js': 'components/bootstrap/dist/js'
}
});