One interesting issue I encountered was with an HTML element that had a value attribute. The expected value was "Comfort & Protection," but when retrieving the name from the JSON data, it displayed as "Comfort & Protection" in AngularJS.
I attempted to assign this name to an HTML element's value attribute.
<div ng-app="app">
<div ng-controller="ExampleCtrl">
<input type="text" ng-repeat="type in types" value="{{type.name}}" />
</div>
</div>
var app = angular.module("app", []);
app.controller('ExampleCtrl', function($scope){
$scope.types = [
{
id: 1,
name: 'Comfort & Protection'
},
{
id: 2,
name: 'Other Name'
}
]
})