AngularJS Quiz App Tutorial (12/24) - Controller Logic For The Quiz

preview_player
Показать описание
The writeup for this video:

Part 1 of this series:

The Git Repo for this project:

With the basics styles for our quiz done, we can start creating some of the actual logic. This logic will of course live inside our quiz controller.

We will create a few methods on our controller that will allow us to loop through all the questions in the quiz. This is achieved again by using an activeQuestion property on our quiz controller and incrementing that to the next available unanswered question every time the user wants to move on to the next question.

Later on there will be a method that will allow us to go to any question we want to from within the quiz. We will set up in preparation for this here.

Support Me On Patreon

One Off Donations:

Bitcoin: 39iDX27ZSkYtRhUrH5r5YN128wEjwDmSYp
Ethereum: 0x38b3cBF8Ee3EeeeA33D1925bA0ce0e90c8EcFD46
Horizen (ZEN): znanBCHpWJecBwZZmft9r5QzbzRX4nQn6Dz

Check Out The Site!

SUBSCRIBE!

Join the Community!

Рекомендации по теме
Комментарии
Автор

This tutorial is very good! I really enjoy following your course!

pbGroningen
Автор

Congratulations to everybody who made it halfway!

GaveUpPorn
Автор

no, really, i love this tutorial. And i like turtles also)

anatoliystukota
Автор

I can't select the answers, when I click with the mouse, the answers are not selected.

Kagan
Автор

a little confused here.

while(!breakOut)

can you please explain me this loop once again?

sagarlimbu