moderator: original title was "Challenge 2.5, Angular JS — using length to show/hide images"
Am I missing something? I did Chapter 1 no problem, while sort of understanding what I was doing. But then I got to chapter 2, more precisely challenge 2.5, and I became confused. I looked at the hint after a while, and this is the answer for one of the questions:
div class="gallery" ng-show="product.images.length > 0"
Sure, I get the using ng-show. But then, I didn't understand where the option length came from. Although I understand that in this case, it will mean that if there are no images, show nothing. If there is one image or more, show it. But, as far as I know, this wasn't discussed at all in the video. Am I missing something? A video that was deleted in the past perhaps? I looked at the only video for that section (before 2.5 that is), only found one which did not explain this length option.