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;
}