<html ng-app = "sampleMod">
<head>
</head>
<body ng-controller = "sampleCon">
<script src = "bower_components/angular/angular.min.js"></script>
<h1>Filters example</h1>
Comments (upper) :- <input type = "text" ng-model = "sampleCon.upper"><br>
{{sampleCon.upper | uppercase}}<br>
Comments (lower) :- <input type = "text" ng-model = "sampleCon.lower"><br>
{{sampleCon.lower | lowercase}}<br>
<button type = "button">Name</button>
<button type = "button">Age</button>
<div>
<ul>
<li ng-repeat = "person in sampleCon.array1">
<b>Name</b> - {{person.name}}<br>
<b>Age</b> - {{person.age}}<br><br>
</li>
<ul>
</div>
<script>
app = angular.module("sampleMod",[]);
app.controller("sampleCon",function(){
this.upper = "";
this.lower = "";
this.array1 = [{name:"sahib",
age:17},
{name:"kukku",
age:25},
{name:"meena",
age:45},
{name:"ayaan",
age:2},
]
});
</script>
</body>
</html>
我犯了採用了棱角分明的JS網頁,一切似乎都很好地工作,但具有NG重複指令內容不顯示在屏幕上。我是無法檢測任何錯誤上述程序內容沒有顯示使用angular.js
當你標記答案的那些優先考慮誰的答案快 – Sajeetharan