HLJ 发布于
2018-08-15 12:44:40

AngularJS大写过滤器代码

上一篇文章:

AngularJS小写过滤器代码

下一篇文章:

AngularJS数字过滤器代码

AngularJS大写过滤器代码

html代码:
<body ng-app="AngularuppercaseApp">
  <div ng-controller="uppercasectrl">
    <ul ng-repeat="user in users  ">
      <li>{{user.name | uppercase }}</li>
    </ul>
  </div>
</body>
JavaScript代码:
<script>
var app = angular.module("AngularuppercaseApp", []);
app.controller("uppercasectrl", function ($scope) {
  $scope.users = [{
      name: "Anil Singh",
      age: 30
    }, {
      name: "suresh dasari",
      age: 29
    }, {
      name: "Rohini Alavala",
      age: 29
    }, {
      name: "praveen kumar",
      age: 24
  }];
});
</script>
当前文章内容为原创转载请注明出处:http://www.good1230.com/detail/2018-08-15/90.html
最后生成于 2024-05-27 22:52:53
上一篇文章:

AngularJS小写过滤器代码

下一篇文章:

AngularJS数字过滤器代码

此内容有帮助 ?
0