Skip to content

Instantly share code, notes, and snippets.

@omochi
Created April 18, 2016 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omochi/120facf92dbf0fe8db6fa4be4b1e6cdc to your computer and use it in GitHub Desktop.
Save omochi/120facf92dbf0fe8db6fa4be4b1e6cdc to your computer and use it in GitHub Desktop.
System.register(['angular2/platform/browser', './app.component'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var browser_1, app_component_1;
var Cat, cat1, cat2, cat3;
return {
setters:[
function (browser_1_1) {
browser_1 = browser_1_1;
},
function (app_component_1_1) {
app_component_1 = app_component_1_1;
}],
execute: function() {
Cat = (function () {
function Cat(name) {
this.name = name;
}
Cat.prototype.greet = function () {
console.log("I am " + this.name);
};
return Cat;
}());
cat1 = new Cat("tama");
cat1.greet();
cat2 = {
name: "mike",
age: 3
};
cat2.greet();
cat3 = {
namae: "hoge",
hage: 4
};
cat3.greet();
browser_1.bootstrap(app_component_1.AppComponent);
}
}
});
//# sourceMappingURL=main.js.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment