I have this code:
<script src="node_modules/nedb/browser-version/out/nedb.min.js"> </script>
<script>
var server = new Nedb({filename: 'someFile2', autoload: true});
</script>
The Nedb persistent database is created.
I just want to access the server variable in the app code, like in MyCmp.ts. How do I do this?