Templating/rendering properties in an empty array in angular2?
问题 http://jsfiddle.net/48yh14c3/ this.list = [ { property: [{anotherProp: true}] }, { property: [] }, { property: [{anotherProp: false}] } ] In angular 1 you could reference deep properties and (for the most part) it would keep on rocking: <div ng-repeat='thing in ctrl.list'> {{thing.property[0].anotherProp}} </div> I'm sure I could just *ngIf the parent property to make sure it exists, or flatten the original POJO. Just wondering if I'm missing something? 回答1: Yes, you're missing the Elvis