プランカーは次のとおりです。
http://plnkr.co/edit/4SakSg6x5wuQQ5eYBwFN?p=preview
ご覧のとおり、child-one と child-two という 2 つのカスタム ディレクティブがあります。2 つのディレクティブは、次の点を除いてすべて同じです。
1. child-one is within an html element that has the attribute ng-controller; and,
2. child-two is not within such an html element, rather it's ng-controller is acquired thru the
directive's .compile method, retrieving the controller thru the attribute var-ctrl.
子 1 にはアイテムが入力されますが、子 2 には入力されません。
質問:
ディレクティブの外で ng-controller を使用したくない場合に子 2 を機能させるには、どうすればよいですか?