2016-04-07 13 views
0

私は2Angular2のhttp.get()関数はどこに定義されていますか?

活字する新しいと角度んだ私はhttp.get()の正確な実装を見てみたかったので、私は./node_modules/angular2/src/http/http.d.tsでファイルを開いて、get機能にスクロール。これは私が見つけたものです:

/** 
    * Performs a request with `get` http method. 
    */ 
    get(url: string, options?: RequestOptionsArgs): Observable<Response>; 
    /** 
    * Performs a request with `post` http method. 
    */ 
    post(url: string, body: string, options?: RequestOptionsArgs): Observable<Response>; 
    /** 
.... 

基本的に、機能定義はありません。抽象メソッド(Javaの用語集)のように思えます。私は他のhttpファイルを見て、VSCode intellisenseを使っていて、関数本体のコードを見つけることができませんでした。

どこにありますか?どのように見つけることができますか?

+0

宣言( '.d.ts'の' .d'はそれを示します)ファイルを見ています:https://basarat.gitbooks.io/typescript/content/docs/types/ambient/d.ts .html – basarat

答えて

関連する問題