JSFiddle - React, Tailwind, and code Playground
HTML
<title>Angular 2 ES5 Demo by someone else that resembles the Babel style</title>
<!-- 1. Load libraries -->
<!-- IE required polyfill -->
<script src="https://npmcdn.com/core-js/client/shim.min.js"></script>
<script src="https://npmcdn.com/zone.js@0.6.12?main=browser"></script>
<script src="https://npmcdn.com/reflect-metadata@0.1.3"></script>
<script src="https://npmcdn.com/rxjs@5.0.0-beta.6/bundles/Rx.umd.js"></script>
<script src="https://npmcdn.com/@angular/core@2.0.0-rc.5/bundles/core.umd.js"></script>
<script src="https://npmcdn.com/@angular/common@2.0.0-rc.5/bundles/common.umd.js"></script>
<script src="https://npmcdn.com/@angular/compiler@2.0.0-rc.5/bundles/compiler.umd.js"></script>
<script src="https://npmcdn.com/@angular/platform-browser@2.0.0-rc.5/bundles/platform-browser.umd.js"></script>
<script src="https://npmcdn.com/@angular/platform-browser-dynamic@2.0.0-rc.5/bundles/platform-browser-dynamic.umd.js"></script>
<some-app></some-app>
CSS
body,input,button,select{
font:100%/1.5 "segoe ui",seravek,arial,sans-serif
}
JavaScript
(function () {
var NgCore = ng.core, HelloComponent = (0, NgCore.Component)({
selector: "some-app",
template: "<p (click)=\"say()\">Hello {{Message}}</p>"
})(function () {
var f = function () {
this.Message = "world";
};
f.prototype.say = function () {
this.Message = "Alice and Bob";
};
return f;
}()), AppModule = (0, NgCore.NgModule)({
imports: [ng.platformBrowser.BrowserModule],
bootstrap: [HelloComponent]
})(function () { });
(function () {
(0,ng.platformBrowserDynamic
.platformBrowserDynamic)().bootstrapModule(AppModule);
})();
})();