Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Angular 2 Example
function AppComponent() {}
AppComponent.annotations = [
new angular.ComponentAnnotation({
selector: 'my-app'
new angular.ViewAnnotation({
template: '<h1>My first Angular 2 App</h1>'
document.addEventListener('DOMContentLoaded', function() {
<script src=""></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment