Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
回答を表示するコンポーネントクラス
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
You can’t perform that action at this time.