Differences between ng-bind and ng-cloak in angularjs

后端 未结 5 1495
醉梦人生
醉梦人生 2021-01-11 10:41

In this question why ng-bind is better than {{}} in angular? I understand the differences between {{}} and ng-bind. On the other hand, I can use

5条回答
  •  情话喂你
    2021-01-11 11:32

    From documentation

    The ngCloak directive is used to prevent the Angular html template from being briefly displayed by the browser in its raw (uncompiled) form while your application is loading. Use this directive to avoid the undesirable flicker effect caused by the html template display.

    https://docs.angularjs.org/api/ng/directive/ngCloak

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题