Differences between ng-bind and ng-cloak in angularjs

后端 未结 5 1616
醉梦人生
醉梦人生 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

    You can look up things like that in the Angular Api Docs.

    ng-cloak is just a css rule that sets the style to display: none !important so your {{}} expression is not visible until replaced with actual data. https://docs.angularjs.org/api/ng/directive/ngCloak

    While ng-bind is an expression itself.

提交回复
热议问题