Created
April 18, 2016 04:08
-
-
Save omochi/120facf92dbf0fe8db6fa4be4b1e6cdc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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