Created
December 24, 2018 11:28
-
-
Save takuya-nakayasu/b8d1003568fc7906ea146c3a79b6c6be to your computer and use it in GitHub Desktop.
回答を表示するコンポーネントクラス
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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