Hi, I'm playing a little with SystemJS and I have a question about the scope:
Aren't modules suppose to be isolated? I mean, functions and variables that aren't exported shouldn't be in the global scope, right?
I wrote a small script just to test it:
var message = 'Hello World';
function sayHello() {
console.log(message);
}
console.log('app loaded');
And in my page I'm loading the module using:
System.import('js/app.js');
When I open, the console I can access window.message and window.sayHello. Is that right? I thought that because I haven't exported them they wouldn't be available.
Thanks