build: adding basic e2e testing infrastructure
This commit is contained in:
20
modules/playground/src/jsonp/app/jsonp_comp.ts
Normal file
20
modules/playground/src/jsonp/app/jsonp_comp.ts
Normal 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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user