I can't get pass boot.js file when i run directly from: file:///C:/wamp/www/ngProject/index.html
or from wamp : http://localhost/ngproject/
In develop mode it works with npm-start
, but shouldn't it work with WAMP or just by running Index.html?
This is my system.js
<script>
System.config({
packages: {
app: {
format: 'register',
defaultExtension: 'js'
}
}
});
System.import('app/boot')
.then(null, console.error.bind(console));
</script>
When starting from wamp - Error: Unable to load script http://localhost/app/boot.js Error loading http://localhost/app/boot.js
When starting Index.html - Error: Unable to load script file:///app/boot.js
Error loading file:///app/boot.js