Skip to content

Instantly share code, notes, and snippets.

@takuya-nakayasu
Created December 24, 2018 11:28
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/b8d1003568fc7906ea146c3a79b6c6be to your computer and use it in GitHub Desktop.
Save takuya-nakayasu/b8d1003568fc7906ea146c3a79b6c6be to your computer and use it in GitHub Desktop.
回答を表示するコンポーネントクラス
import { Component, OnInit, Input } from '@angular/core';
import { YesnoWtfResponseEntity } from '../question/yesno-wtf-response.entity';
/**
* YesNo.WTF APIのレスポンス(回答とGIF画像)を表示する
* コンポーネントクラス
*
* @export
* @class AnswerComponent
*/
@Component({
selector: 'app-answer',
templateUrl: './answer.component.html',
styleUrls: ['./answer.component.scss']
})
export class AnswerComponent {
// YesNo.WTF APIのレスポンスを格納する
@Input() answer: YesnoWtfResponseEntity;
constructor() { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment