2017-02-04 11 views
0

Angular 2アプリケーションでHTTP Rest呼び出しを使用する場合のチュートリアル:https://www.youtube.com/watch?v=L7xPwhwbcHE&t=241sに従っています。Angular2コンポーネントのディレクティブ

私は@Component注釈内のディレクティブを含めてのポイントに到達すると、私はこのエラーを取得:

Argument of type '{ selector: string; templateUrl: string; directives: typeof HttpTestComponent[]; }' is not assignable to parameter of type 'Component'. 
Object literal may only specify known properties, and 'directives' does not exist in type 'Component'. 

私は私が知っているでもないし、使用しています正確に何Angular2のバージョンがわかりませんどのように調べるか、これはチュートリアルで使用されているバージョンと私のバージョンとの間に互換性がない可能性がありますか?どうすればこのことができますか?

答えて

関連する問題