Right now in my index.html, I need to do
<script src="node_modules/nedb/browser-version/out/nedb.min.js"> </script>
<script>var nedb = new Nedb({filename: 'someFile2', autoload: true});
</script>
This loads the persistent nedb database "someFile2" under indexeddb in the Google Chrome browser.
How do I bootstrap nedb via the main app component or module? I want to be able to create an nedb database via the application code.
I use Systemjs with angular 2.