ShifaMicrotechSupport / shifa-online

Shifa Repertory Online
3 stars 1 forks source link

*ngFor need to pas key for object array #20

Closed nasihere closed 8 years ago

nasihere commented 8 years ago

Step1

.subscribe( res => { this.repertoryList = (<any>res)[0].repertory; this.arrayOfKeys = Object.keys(this.repertoryList); }, null, () => { this.isLoading = false; }) }

html <div *ngFor='#key of arrayOfKeys'> <ul class="list-group " *ngFor ="#item of repertoryList[key]">