Simple hello world web component

This commit is contained in:
Denys Vuika
2016-04-14 12:04:25 +01:00
parent 54cae495b1
commit 2aaf4a0a77
4 changed files with 68 additions and 2 deletions

View File

@@ -5,10 +5,13 @@ import {Component} from "angular2/core";
<div class="container">
<div class="row">
<h1>Page 2</h1>
<input [(ngModel)]="username">
<span>Username: {{username}}</span>
<hello-world [who]="username"></hello-world>
</div>
</div>
`
})
export class Page2View {
username: string = 'Unicorn';
}