I am trying to get the angular 2 example running with a gulp typescript compiler. The gulp-script compiles
import {Component, View, bootstrap} from 'angular2/angular2';
to
var angular2_1 = require("angular2/angular2")
which does not run in the browser. What is wrong with this? As far as I know, this kind of implementation of 'require' is only used with nodeJS. Why does the TypeScript compiler still compile it like that?
Anyone any ideas?
Kind regards
I was not able to get that working but was able to get it working with
gulp-traceur
. Here is my gulpfile.The project can be seen here:
https://github.com/dylanb/Axponents/tree/master/angular2