I have a very simple angular2 project, configured to work with Gulp, Bundle and ECM6. Bundle will create a big file which contains the translated ECM5 of angular plus my app.
The problem was that I was including the bundle.js before the mainapp component was defined in the HTML. This fixed the issue.
bundle.js
mainapp
Angular 2 Test
Update:
Seems to also solve the problem regardless of the order of the elements.