build: adding basic e2e testing infrastructure

This commit is contained in:
Igor Minar
2016-05-01 22:54:19 -07:00
parent fdd8bd1a36
commit 2e1f3f003d
105 changed files with 341 additions and 182 deletions

View File

@ -0,0 +1,20 @@
import {Component} from '@angular/core';
import {Jsonp} from '@angular/http';
@Component({
selector: 'jsonp-app',
template: `
<h1>people</h1>
<ul class="people">
<li *ngFor="let person of people">
hello, {{person['name']}}
</li>
</ul>
`
})
export class JsonpCmp {
people: Object;
constructor(jsonp: Jsonp) {
jsonp.get('./people.json?callback=JSONP_CALLBACK').subscribe(res => this.people = res.json());
}
}