Skip to content

Instantly share code, notes, and snippets.

@timmyBeef
Last active October 26, 2018 08:02
Show Gist options
  • Save timmyBeef/142cdf4b1db0eace0181dc4beb3c0835 to your computer and use it in GitHub Desktop.
Save timmyBeef/142cdf4b1db0eace0181dc4beb3c0835 to your computer and use it in GitHub Desktop.
<div *ngFor="let item of qaList;let qIndex= index;trackBy:customQTrackBy">
<div class="card">
<div class="card-header bg-info text-white h5">
Q{{(qIndex+1) + '. ' + item.question.questionContent}}
</div>
<div class="row input-group">
<textarea class="form-control" rows=2 name="questions-{{qIndex}}" [(ngModel)]="item.question.questionContent"
#editQ="ngModel" required></textarea>
.........
......
....
<div *ngFor="let ans of item.answers;let aIndex= index;trackBy:customATrackBy">
<div class="row">
<div class="col-1">
{{'A' + (aIndex + 1) + '. '}}
.........
......
....
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment