AngularJS : Why ng-bind is better than {{}} in angular?

前端 未结 12 704
灰色年华
灰色年华 2020-11-22 07:19

I was in one of the angular presentation and one of the person in the meeting mentioned ng-bind is better than {{}} binding.

One of the re

12条回答
  •  再見小時候
    2020-11-22 07:32

    ng-bind is also safer because it represents html as a string.

    So for example, '' will be displayed as a string and not be executed.

提交回复
热议问题