import { Component, OnInit, Input } from '@angular/core';

@Component({
    selector: 'app-mcq',
    templateUrl: './mcq.component.html',
    styleUrls: ['./mcq.component.scss'],
})
export class McqComponent implements OnInit {
    @Input() text: string = '';
    @Input() choices: Array<{
        value: string,
        text: string,            
    }>;
    @Input() correctAnswer: string;

    selectedChoice: string = '';

    constructor() { }

    ngOnInit() {}

}
