我正在开发一个测验软件,我想显示每个问题的数字指针。我怀疑如何在不同的问题状态下显示指针的不同类,以及在其上面的一系列数字。如何根据对象的状态显示一个类
我已经编写了两个senarios
ng-class="{
'ibps-answered': question.selected !== null,
'ibps-not-answered': question.selected === null
}",
ng-click="quiz.setActiveQuestion($index)"">1
的问题四种不同的状态有如下
`class="ibps-not-visited"`:questions at initial stage without touching "`default`"
`class="ibps-not-answered"`:questions visited but options are not attempted
`class="ibps-review"`:"have a special button for marking it for review in future without answering it."
class="ibps-answered":"Have attempted the questions"
class="ibps-review-answered":"have attempted and also marked for review"
第一种情况将是一个默认的情况下。我怎样才能达到其他四个条件。请给我一些建议。
分享您的完整代码! – Aravind
iam期待一个逻辑arvind,iam不知道这些事件发生时会发生什么事情..此外这些都是一种形式的所有常见的条件情况 –