Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
范围.$watch在引导angularjs选项卡集中不工作_Angularjs_Angular Ui Bootstrap - Fatal编程技术网

范围.$watch在引导angularjs选项卡集中不工作

范围.$watch在引导angularjs选项卡集中不工作,angularjs,angular-ui-bootstrap,Angularjs,Angular Ui Bootstrap,我在尝试使用angularjs$scope.$watch对bootstrap ui-bootstrap-tpls-0.10.0.js版本中选项卡内的元素进行监视时遇到了这个问题,虽然该版本不起作用,但如果将元素放置在选项卡集之外,它就可以正常、完美地工作 任何有问题的人都应该尽快做出回应。这是另一篇文章,提供了解决方案: resume:将变量放入另一个变量中,例如 模型。变量 这很愚蠢,但很有效你能添加一个plnkr吗?我已经能够修复它了。我认为这是一个类似于的儿童范围问题。谢谢

我在尝试使用angularjs$scope.$watch对bootstrap ui-bootstrap-tpls-0.10.0.js版本中选项卡内的元素进行监视时遇到了这个问题,虽然该版本不起作用,但如果将元素放置在选项卡集之外,它就可以正常、完美地工作


任何有问题的人都应该尽快做出回应。

这是另一篇文章,提供了解决方案:

resume:将变量放入另一个变量中,例如

模型。变量


这很愚蠢,但很有效

你能添加一个plnkr吗?我已经能够修复它了。我认为这是一个类似于的儿童范围问题。谢谢