When I try to add the tag in angular JS and render, it doesn't display the image, but rather it displays the img code as it is. Here is my Angular JS code
$scope.option = '<img src="smiley.gif" alt="Smiley face" height="42" width="42">';
responsePromise.success(function(data, status, headers, config) {
for(index in data) {
$scope.usersArray.push({
name:data[index].name,
password:data[index].password,
option:$scope.option
});
}
});
My html code
<tr ng-repeat="user in usersArray">
<td><span ng-model="user.name">{{user.name}}</span></td>
<td><span ng-model="user.password">{{user.password}}</span></td>
<td><span ng-model="user.option">{{user.option}}</td>
</tr>
Other details are coming fine, except the tag. Do I need to add anything extra here?