directive transclude 外部的html 部分的作用域只能获取到外层的ng-controller
的作用域,
例如 <box> 用户名: {{user}}</box>
只能获取到ng-controller的scope.user 无法获取到box的scope.user,
只有处于template定义的 template:"<div> {{ scope }}</div>"
html 可以获取到 directive 的scope
不知道有没有什么方法能通过 transclude 将 dir的scope 传到HTML 上,因为看到ng-isolate-scope 理论上应该应该可是实现 isolate中的scope 绑定吧
transclude是可以传入你自己的scope的,例如: