Check out this simple plunk here. My goal is to reference the app.js
file as an ES6 module by setting the type
attribute of the script tag to module
. However, when I add the type attribute, Angular is unable to find the module. If I remove it, then it works fine. Any ideas on what I might be doing wrong?
I am specifically trying to treat my app.js
file as an ES6 file in order to import other ES6 modules for creating controllers and services.
Just to clarify, I am using traceur
for transpiling to ES5.