chore: track size of a "Hello world" app built with WebPack

Closes #6434
This commit is contained in:
Pawel Kozlowski
2016-01-08 17:51:02 +01:00
parent a593ffa6f3
commit f7424d5aeb
7 changed files with 123 additions and 10 deletions

View File

@ -0,0 +1,10 @@
<!doctype html>
<html>
<title>Angular 2.0 Hello World payload test</title>
<body>
<hello-app>
Loading...
</hello-app>
<script src="app-bundle-deps.min.js"></script>
</body>
</html>

View File

@ -0,0 +1,15 @@
import {Component} from 'angular2/core';
import {bootstrap} from 'angular2/bootstrap';
@Component({
selector: 'hello-app',
template: `
<h1>Hello, {{name}}!</h1>
<label> Say hello to: <input [value]="name" (input)="name = $event.target.value"></label>
`
})
export class HelloCmp {
name = 'World';
}
bootstrap(HelloCmp);