I connect isolated scope to the enclosed directive. As soon as I connect it with this code:

scope: { testBind: '=' }, 

The value of the testBind variable is no longer inherited.

Simple planker code https://embed.plnkr.co/kLhwu8/

What could be the error? How to fix it?

1 answer 1

It:

 <div my-dir2 testBind="testBind"></div> 

Replaced by:

 <div my-dir2 test-bind="testBind"></div>