February 2019
Beginner
694 pages
18h 4m
English
In order to use SystemJS within our browser, we will need to include the system.js source file, and then run a configuration script for SystemJS, similar to our RequireConfig.js file. Our HTML page is as follows:
<html>
<head>
</head>
<body>
<script
src="./node_modules/systemjs/dist/system.js">
</script>
<script src="./SystemConfig.js"></script>
</body>
</html>
Here, we have included two script files. One for the system.js framework itself, and one for a file named SystemConfig.js. This SystemConfig.js file is generated from the following SystemConfig.ts file:
SystemJS.config({
packages : {
'lib' : { defaultExtension: 'js' }
}
});
SystemJS.import('app.js');
Our SystemJS configuration file starts with a call ...
Read now
Unlock full access