Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created February 9, 2019 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lydemann/f05cac0f08b23adf8f6618482e8a9a24 to your computer and use it in GitHub Desktop.
Save lydemann/f05cac0f08b23adf8f6618482e8a9a24 to your computer and use it in GitHub Desktop.
question.component.html
<ng-container
*ngIf="question.answerType === 'hardcoded'; else questionRendering"
[ngTemplateOutlet]="
getTemplateRefForQuestion(question.externalQuestionId)
"
[ngTemplateOutletContext]="{ formGroup: form, question: question }"
>
</ng-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment