chore: track size of a "Hello world" app built with WebPack
Closes #6434
This commit is contained in:
10
modules/payload_tests/hello_world/ts/webpack/index.html
Normal file
10
modules/payload_tests/hello_world/ts/webpack/index.html
Normal 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>
|
15
modules/payload_tests/hello_world/ts/webpack/index.ts
Normal file
15
modules/payload_tests/hello_world/ts/webpack/index.ts
Normal 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);
|
Reference in New Issue
Block a user