Created
April 24, 2014 14:30
-
-
Save shangmin1990/11256691 to your computer and use it in GitHub Desktop.
AngularJs 小技巧
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ }} 的问题 | |
在页面初始化的时候,用户可能会看到 {{ }},然后闪烁一下才出现真正的内容。 | |
解决办法: | |
使用 ng-cloak directive 来隐藏它 | |
使用 ng-bind 替代 {{ }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment