filmov
tv
AngularJS ng repeat directive

Показать описание
angularjs ng-repeat example
ng-repeat simple example
ng-repeat simple array
angularjs ng repeat nested array
angularjs ng repeat index example
In this video we will discuss
1. ng-repeat directive in Angular
2. Nesting ng-repeat with an example
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
ng-repeat is similar to foreach loop in C#.
Let us understand this with an example. Here is what we want to do.
1. For each employee we have in the employees array we want a table row. With in each cell of the table row we to display employee
Firstname
Lastname
Gender
Salary
This can be achieved very easily using ng-repeat directive.
Nested ng-repeat example : The model contains an array of countries, and each country has an array of cities. The view must display cities nested under their respective country.
Finding the index of an item in the collection :
To find the index of an item in the collection use $index property
To get the index of the parent element
Use $parent.$index or
Use ng-init="parentIndex = $index"
Link for all dot net and sql server video tutorial playlists
Link for slides, code samples and text version of the video
ng-repeat simple example
ng-repeat simple array
angularjs ng repeat nested array
angularjs ng repeat index example
In this video we will discuss
1. ng-repeat directive in Angular
2. Nesting ng-repeat with an example
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
ng-repeat is similar to foreach loop in C#.
Let us understand this with an example. Here is what we want to do.
1. For each employee we have in the employees array we want a table row. With in each cell of the table row we to display employee
Firstname
Lastname
Gender
Salary
This can be achieved very easily using ng-repeat directive.
Nested ng-repeat example : The model contains an array of countries, and each country has an array of cities. The view must display cities nested under their respective country.
Finding the index of an item in the collection :
To find the index of an item in the collection use $index property
To get the index of the parent element
Use $parent.$index or
Use ng-init="parentIndex = $index"
Link for all dot net and sql server video tutorial playlists
Link for slides, code samples and text version of the video
Комментарии