0

As my understandings, for Html display (read only) elements, ng-model is not supposed to use. Instead {{scope-variable}} syntax is used. I have a question for the usage of ng-bind. Is there any behavior difference for the 2 following div elements?

The following div element has ng-bind directive as one of its attributes:

 <div class="col-md-7" style="border: 1px solid #8fbc8f; min-height: 200px;" ng-binding="myContents">
     {{myContents}}
 </div>

And the following div element does not have ng-bind directive as one of its attributes:

 <div class="col-md-7" style="border: 1px solid #8fbc8f; min-height: 200px;">
     {{myContents}}
 </div>
Mustafa Shujaie
  • 1,447
  • 1
  • 16
  • 30
Thomas.Benz
  • 8,381
  • 9
  • 38
  • 65

0 Answers0