Last active
May 20, 2016 05:32
-
-
Save danielschmitz/b2e7f085b544c464bbed to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<script> | |
System.config({ | |
transpiler: 'typescript', | |
typescriptOptions: { emitDecoratorMetadata: true }, | |
packages: {'app': {defaultExtension: 'ts'}} | |
}); | |
System.import('app/main') | |
.then(null, console.error.bind(console)); | |
</script> |
This file contains hidden or 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
document.write("<button id='mybtn'>Click Me</button>"); | |
var _this = this; | |
_this.hello = "Hello World"; | |
var btn = document.getElementById('mybtn'); | |
btn.addEventListener('click', function () { | |
document.write(_this.hello); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment