ユーザー定義のディレクティブで、outputs、@Output、EventEmitterを使ってカスタムイベントを定義する方法を確認し、サンプルを作成しました。 ※Angular2の2.0.0版、TypeScriptを使って確認したものです。(デモはv4.4.3、v2.0.0で動作確認) ※目次をクリックすると目次の下部にコンテンツが表示されます。 1.outputs属性、@Output 2.カスタムイベントを使ったサンプル 3.デモ カスタムディレクティブで、output属性を使って、呼び出し側ディレクティブへイベント発行行う事ができます。 ●宣言方法 ①コンポーネントのクラス内で宣言 @Output() propertyName = new EventEmitter(); ※以下のようにOutput、EventEmitterをインポートする必要がある。 import {Output,