मैं इस तरह कुछ करना चाहता हूँ:कोणीय 2 में <template * ngFor के बराबर क्या है?
<div *ngFor="let parent of parents">
<div *ngFor="let child of parent.children">
</div>
</div>
लेकिन मुझे लगता है कि अतिरिक्त बाहरी div नहीं करना चाहती। मैं क्या खोज को खोजने के लिए, कोणीय 1 में कर लिया है से मैं ऐसा करने से इस लक्ष्य को हासिल कर सकते हैं:
<template *ngFor="let parent of parents">
<div *ngFor="let child of parent.children">
</div>
</template>
यह हालांकि कोणीय 2 में काम करने के लिए प्रतीत नहीं होता। ऐसा करने का सही तरीका क्या है?
देखना कैसे आप सूचकांक मिलता है ('https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html –