diff app/app.component.ts @ 0:39ec75917ef7

first checkin
author casties
date Thu, 07 Jan 2016 15:04:15 +0100
parents
children 59b7c3afcc6b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/app.component.ts	Thu Jan 07 15:04:15 2016 +0100
@@ -0,0 +1,17 @@
+import {Component} from 'angular2/core';
+
+import {QuerySelectComponent} from './query-select.component';
+
+@Component({
+    selector: 'my-text',
+    template: `
+        <h1>My Angular 2 Text: {{title}}</h1>
+        <p>Selected option: {{selectedOption}}</p>
+        <query-select [selectedOption]="selectedOption"></query-select>
+        `,
+    directives: [QuerySelectComponent]
+})
+export class AppComponent { 
+    public title = 'huhu!';
+    public selectedOption = 'unknown';    
+}