-1
我是新的角2.0中我試圖調用ajax.But我不能調用ajax按鈕單擊。請幫我執行以下代碼我們如何可以調用角2.0中的ajax url節點
import {Component,enableProdMode} from 'angular2/core';
import {Http,Headers} from 'angular2/http';
@Component({
selector: 'my-app',
templateUrl: './templates/login.html'})
export class AppComponent {
constructor(private http: Http) { }
}
[HTTP客戶端文檔(https://angular.io/docs/ts/latest/guide/server-communication。 HTML) –