<td ng-repeat="course in student.extracourses">
<div ng-if="!course"> not selected </div>
{{b.note}}
</td>
I have a table with some static columns and dynamic columns with respect to student extracourses. Some students do have extra notes and some do not. How can I show in the table 'not selected' if the 'course' does not exist? I tried this code above and it did not print 'not selected' for those who do not have a course
student.extracourses)studentis "enrolled" in 2 of them. Does the arrayextracoursescontain 4 items or just 2? If it is 4 what is the value of the 2 "empty" courses in that collection? (undefined, null, empty object, something else....)