mercredi 4 mars 2015

Redirection in AngularJS controller based on value

I'm really new to AngularJs and I can't find how to do the following :


A user is answering questions in a quiz.html page. Each answer is added to a "answers" list. In a controller I want to redirect to a result.html page if my "answers" list contains 4 answers...



if (answers.length === 4) {
???? }


I know this is a simple question but I can't find any simple answer Thank you !


Aucun commentaire:

Enregistrer un commentaire