Interpolation is such a process when AngularJS fetches a calculated string into the text between HTML element tag and within attribute assignments.
Let's see example of interpolation:
<h3> {{title}} <img src = "{{myImageUrl}}" > </h3>
In this example {{myImageUrl}} first is been evaluated by AngularJS and only then it converts it to a string. And remember that template expression cannot refer to anything in the global namespace.
Your explanation and example are well about Interpolation in AngularJS. I am planning to study angularjs 2 training. Do you provide some details about it.
ReplyDeleteIts nice https://docs.angularjs.org/guide/interpolation
ReplyDelete