I have a service that retrieves data from a JSON file.
Some of the data within the data is all in uppercase, for example:
$scope.FootballClubs = [{
C
A filter is an ideal solution for this purpose
{{ name.CompanyName | titleCase }}
So the filter itself would be
angular.module('myFootballModule', [])
.filter('titleCase', function() {
return function(input) {
input = input || '';
return input.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
};
})