Skip to content

Instantly share code, notes, and snippets.

@timmyBeef
Last active October 14, 2018 15:46
Show Gist options
  • Save timmyBeef/77c808a153f7b563badae7fd6765fd72 to your computer and use it in GitHub Desktop.
Save timmyBeef/77c808a153f7b563badae7fd6765fd72 to your computer and use it in GitHub Desktop.
DATA - Nested *ngFor Example (Template Driven)
this.qaList = [{
question: <QuestionDto> { questionContent: 'Do you have any hobbies?', questionOrder: 0, isDefaut: true },
answers: [
<AnswerDto> { answerContent: 'I like to swim.', isDefaut: true},
<AnswerDto> { answerContent: 'I like to play basketball.', isDefaut: false},
<AnswerDto> { answerContent: 'I like to play badminton.', isDefaut: false}
]
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment