Example 6 - ng-bind in AngularJS

by taly2808

HTML

<div ng-app ng-init="fruits=['apple', 'lemon', 'melon']">
    <p>Fruit 1: <span ng-bind="fruits[0]"></span></p>
    <p>Fruit 2: <span ng-bind="fruits[1]"></span></p>
    <p>Fruit 3: <span ng-bind="fruits[2]"></span></p>
</div>