Differences between ng-bind and ng-cloak in angularjs

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

    When you use ng-bind, browser do ignore this while after angular is loaded , it binds the value in the view.

    While if you use ng-cloak, {{}} will still appear for a short time, but as soon as angular is loaded and parsed, it will omit the {{}} till the compilation occurs.

提交回复
热议问题