0
在这里写下的http服务,我知道后以这种方式使用HTTP服务,但我怎么能当其功能如同在打字稿如何在功能
export class studentController {
GetStudentData() {
constructor(http: Http) {
http.get('api/Employee').subscribe(result => {
this.student = result.json();
})
}
}
export class StudentMastre {
stdID: Number;
stdName: string;
email: string;
Phone: string;
Address: string;
}