From Chocolate Goat, 10 Years ago, written in Plain Text.
This paste is a reply to Untitled from Commodious Duck - view diff
Embed
  1. // Annotation section
  2. @Component({
  3.   selector: 'my-app'
  4. })
  5. @View({
  6. })
  7. // Component controller
  8. class MyAppComponent {
  9.   name: string;
  10.  
  11.   constructor() {
  12.     this.name = 'Alice';
  13.   }
  14. }