1.1.6 • Published 3 years ago

@pavankalyan.c/quiz v1.1.6

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

Quiz

This library was generated with Angular CLI version 11.1.2.

Installation

Run npm i generate-quiz for installation.

Include QuizModule in your app.module.ts imports array.

Usage

<lib-quiz [questionData]="questionData" (answerData)="listenToAnswers($event)"></lib-quiz>

Prepare the questions data in the below structure.

const questionsData=[ 
	{
		questionText: "Who killed John Wicks Dog?",
		questionId: "15544",
		options: [ 
			{ optionId: "1d23f", optionText: "John Doe" }, 
			{ optionId: "1er3e", optionText: "Walter White" },
			{ optionId: "3fgr4", optionText: "Jessy Pinkman" },
			{ optionId: "13fge", optionText: "Vivek Oberoi" },
		] 
	},
	{
		questionText: "Say my name?",
		questionId: "124354",
		options: [ 
			{ optionId: "3dfdf", optionText: "Heisenberg" }, 
			{ optionId: "35fgf", optionText: "Gus Fring" },
			{ optionId: "7gthg", optionText: "Hank Schrader" },
			{ optionId: "0df33", optionText: "Ted" },
		] 
	}
		
]

Note: questionId should be unique to that question array. optionId should be unique to that particular options array.

Had any issues

Report any issues found at quiz

Feature Suggestion

Please reach out to me for any feature suggestions pavankalyan.c

1.1.6

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.1.5

3 years ago

1.0.6

3 years ago

1.1.4

3 years ago

1.0.5

3 years ago

1.1.3

3 years ago

1.0.4

3 years ago

1.1.2

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago