These are chat archives for systemjs/systemjs

22nd
Jun 2016
Kris Thomsen
@kristho91
Jun 22 2016 09:25
Hello everybody! I'm creating a small project where I am importing a transpiled js-file (transpiled from typescript) and it seems that the importing is working as expected. But how can I access the imported code from a script-tag in my html template? It seems it can't find my classes or anything :(
David
@DavidStrada
Jun 22 2016 14:49
@kristho91 is this what you mean ? how to include import it from an html file.
<script src="system.js"></script>
<script>
  // set our baseURL reference path
  System.config({
    baseURL: '/app'
  });

  // loads /app/main.js
  System.import('main.js');
</script>