angular ng-repeat and images in a row
问题 In my view model I have an array of exactly 4 icon names. If I place the 4 images like so: <img ng-src="{{'/Content/img/' + vm.indicator[0]}}" alt="" /> <img ng-src="{{'/Content/img/' + vm.indicator[1]}}" alt="" /> <img ng-src="{{'/Content/img/' + vm.indicator[2]}}" alt="" /> <img ng-src="{{'/Content/img/' + vm.indicator[3]}}" alt="" /> they appear nicely in a row as desired. However, when I use <div ng-repeat="indicator in vm.indicator track by $index"> <img ng-src="{{'/Content/img/' +