Angularjs不加载对铬 [英] Angularjs not loading on chrome

查看:85
本文介绍了Angularjs不加载对铬的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的一些应用程序的用户的报告中看不到车把花括号当他们去到该页面。
这是通过人们对Chrome的报道(版本有所不同,从26至31)。这是发生在少数的用户。
是否有任何已知问题?用户只需发送一个屏幕截图与可见车把括号。应用程序是采用了棱角分明的JS版本1.0.5

Some of our app users report seeing handlebar curly braces when they go to the page. This has been reported by people on chrome (versions vary from 26 to 31). It is happening to a few of the users. Is there any known issues? The users just send a screenshot with the visible handlebar braces. The app is using Angular JS version 1.0.5

推荐答案

因为它不是编译模板然而这可能是网页的加载速度慢和角度显示在原始状态下的模板。

This might be the slow loading of page and Angular displaying the template in raw state as it hasn't compiled the template yet.

由于按照官方文件,你有两个选择,以避免这种情况 -

As per the official documentation, you have two options to avoid this -


  1. 而不是使用 {{模型元素}} ,您可以用 NG-绑定=模型元素

使用 ngClock 指令,将prevent从显示的原始数据。

Use ngClock directive which will prevent the raw data from displaying.

这篇关于Angularjs不加载对铬的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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