Skip to content

Instantly share code, notes, and snippets.

@takuya-nakayasu
Created December 24, 2018 11:30
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 takuya-nakayasu/47a866ca2195bc5cb05c12d9b3ed9fad to your computer and use it in GitHub Desktop.
Save takuya-nakayasu/47a866ca2195bc5cb05c12d9b3ed9fad to your computer and use it in GitHub Desktop.
回答を表示するコンポーネントのテンプレート
<!-- YesNo.WTF APIのレスポンス結果が格納されていない場合、非表示 -->
<div *ngIf="answer" class="response">
<!-- 回答結果(YES or NOを表示) -->
<div class="answer">
{{answer.answer | uppercase}}
</div>
<!-- GIF画像を表示 -->
<img class="gif" src="{{answer.image}}">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment