AngularJS - Format Text Return From JSON To Title Case

前端 未结 3 536
离开以前
离开以前 2021-02-03 20:29

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         


        
3条回答
  •  眼角桃花
    2021-02-03 21:11

    just use this div in your HTML

      
    {{ name.CompanyName | titleCase:CompanyName }}

提交回复
热议问题