角度1.3绑定一次不起作用 [英] angular 1.3 bind once doesn't work

查看:37
本文介绍了角度1.3绑定一次不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个简单的代码,我不知道为什么输入输入文本时它会更新两个< h1> 而不是仅更新第二个?

I have this simple code and I don't know why when I'm typing in the input text it updates the two <h1> instead of only the second?

<h1>{{::person.name}}</h1>
<h1>{{person.name}}</h1>
<input type="text" ng-model="person.name"/>

推荐答案

这也发生在我们身上,启用Batarang扩展后,AngularJS 1.3的bind-once无效.禁用Batarang,一切都会好的

It happened to us as well, AngularJS 1.3's bind-once does not work when Batarang extension is enabled. Disable Batarang and everything will be OK

这篇关于角度1.3绑定一次不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆