-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrollers-4.html
33 lines (33 loc) · 996 Bytes
/
controllers-4.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head>
<title>Student Details</title>
<style>
ol{
border: 1px solid black;
width: 180px;
margin: 5px;
background-color: lightyellow;
color: blue;
border-radius: 50px;
}
</style>
</head>
<body ng-app="myApp">
<h3>Student Details</h3>
<hr>
<div ng-controller="student">
<ol>
<li ng-repeat="item in stud">{{item.sid}} {{item.sname}} {{item.course}}</li>
</ol>
</div>
<script src="angular.js"></script>
<script>
var app = angular.module("myApp",[]);
app.controller("student",function($scope){
$scope.stud=[{sid:1007,sname:"Jigensh",course:"MEAN"},
{sid:1008,sname:"Jignesh",course:"UI"},
{sid:1009,sname:"JigE",course:"Java"}];
})
</script>
</body>
</html>