TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
First-Child and First-Child with ng-Repeat
Nemilidinne Ashokreddy
Nov 26
2015
Code
956
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset=
"utf-8"
/>
<script src=
"Scripts/angular.js"
></script>
<style>
.active
{
color: red;
}
</style>
</head>
<body ng-app=
""
>
<div>
<div ng-repeat=
"i in [1,2,3,4,5]"
ng-
class
=
"{'active':$first}"
>{{i}}</div>
</div>
</body>
</html>
JQuery
AngularJS
ng-Repeat