Duration: 17:50 min
Summary: In this lesson, we will continue our discussion about directives. We will start with the same module and controller that we built in the previous videos. We have an array of books that contain the name, page count, and whether the book is read. Building on this, we will create two tables. The first table will list the information available in the array by using the ng-repeat directive. The second book will be a similar concept. But here, I will introduce you to the ng-repeat directive’s variables. We will be using the $odd and the index variables. For the $odd one, we will make a decision on which CSS class to use. For the index, we will display the index of the record in the table. Also, we will see how to use an inner ng-repeat at the <td> level.