1.1.7 • Published 2 years ago

mv-quiz v1.1.7

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Quiz from MyVokabeln platform

This library was generated with Angular CLI version 12.1.0.

Overview

npm i mv-quiz or npm install mv-quiz

Instalation

  1. Bootstrap Add boostrap in your project. For Angular framework you can use npm-repository npm.
    npm i bootstrap
  2. Install Angular-Quiz Install quiz from npm-repository.
    npm i mv-quiz

Usage

In your HTML-component add following lines:

<lib-mv-quiz [quiz]="this.quiz" [quizSettings]="quizSetting"> </lib-mv-quiz>

start new quiz

If you want to start new quiz, you have to change input variable. Module recognize the change and start the quiz from the start.

Structure of quiz variable

  1. quiz:Quiz = Quiz to show is variable Quiz interface with following structure:

    Quiz = {
        quizId?: string,
        questions: Questions[]
    };

    quizId = actually not using paramnter questions = contain all quiz item to sho

  2. One item of quiest is variable with following structure:

             {
               question: string, 
               answer: string[4],
               correctAnswer: number
             }

    question = question for one item answer = field with constant length (4), represent the possible answer correctAnswer = say on which position is the correct answer, start with index 0

Structure of setting variable

You can also a little change of displaing of quiz by input variable quizSettings: QuizSetting with following structure:

QuizSetting {
  isPercentShow: boolean
}
1.1.7

2 years ago

1.1.1

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.3

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago