AngularJS Quiz App Tutorial (22/24) - Functions Inside The Results Controller

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

Part 1 of the Series:

The Git Repo for this project:

This video will be dedicated to creating the logic for the setActiveQuestion method that we have referenced in our html but have yet to create it inside our controller.

This method will allow us to select the question that we want to view, which will allow us to see what questions we got right and wrong.

We will also create the markup and logic that will display the users score and overall percentage score from the quiz. I also touch on a new filter that angular provides to use to filter the number of decimal places to be displayed on a number.

Support Me On Patreon

One Off Donations:

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

Check Out The Site!

SUBSCRIBE!

Join the Community!

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

hi man. i really apreciate all your cool work!! Tanhks!!!!

aaronaaronaaron
Автор

Had a question. Adrian. So I know we created a setActiveQuestion function for the Quiz Controller in the quiz.js file already. Is there any way we could reuse that same function instead of creating a separate setActiveQuestion function for the Results Controller. Would it work (and be good practice) if we move the original setActiveQuestion out of quiz.js and move it to the Quiz Metrics service so that both the Quiz and Results Controllers can access this function? Would love to hear your thoughts on this! Thanks!

G