如何在rootscope 获取angular ui的tab子域 scope 也叫子域暴露

可以 通过 在tab上 定义 ng-init="$parent.tabscope=this”;

然后在 tab 的父级scope 中便能找到 tabscope 数组  有多少个tab就有多少个子域

这算是子域暴露的一种方法

你可能感兴趣的:(如何在rootscope 获取angular ui的tab子域 scope 也叫子域暴露)