Here are some examples can easily play with:
First of all: FileRead with pure javascript, works fine:
http://codepen.io/butaixianran/pen/gpxpww
With angular2, ES5 javascript (generate by TypeScript), doesn't work:
http://plnkr.co/edit/1MTFbVCKGGOU9XPcNVit?p=preview
With angular2 and typescript at codepen:
(Typescript with .t.d file won't work at codepen, following link just show you the TS source code)
http://codepen.io/butaixianran/pen/XbabaO
Online IDE (c9.io), sandbox with Angular2 and TypeScript, doesn't work:
(can login with github account)
https://ide.c9.io/butaixianran/angular2
Preview offered by this online IDE:
https://angular2-butaixianran.c9.io/src/index.html