You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 regels
470 B

  1. import { Component, OnInit, Input } from '@angular/core';
  2. @Component({
  3. selector: 'app-mcq',
  4. templateUrl: './mcq.component.html',
  5. styleUrls: ['./mcq.component.scss'],
  6. })
  7. export class McqComponent implements OnInit {
  8. @Input() text: string = '';
  9. @Input() choices: Array<{
  10. value: string,
  11. text: string,
  12. }>;
  13. @Input() correctAnswer: string;
  14. selectedChoice: string = '';
  15. constructor() { }
  16. ngOnInit() {}
  17. }