棱角分明的形状

时间:2015-09-13 17:48:25

标签: javascript angularjs

完全没有角度,并欣赏任何帮助。我试图以角度构建一个满意的应用程序,我使用ng-show一次一个地提出问题并收集数据并在最后将其发送到firebase。我遇到的困难是清除以前给出的答案。我已经尝试重置范围并使用$ setPristine()但仍然收到错误。

HTML

realloc()

JS

<div id = "question" class="row" ng-show="question">
    <div id="badResponse"  ng-click="selectResponse('bad')">
    </div>
    <div id="goodResponse" ng-click="selectResponse('good')">
    </div>
</div>

<div ng-show="why">
<ul ng-repeat="option in whyOptions">
  <li><input type="checkbox" class="reason" checklist-model="form.why" checklist-value="option">{{option}}</li>
</ul>
 <button id ="enterBtn" ng-click="responseReason()">Next</button>
</div>

<div ng-show="more" class="more">
  <button id ="skipBtn" ng-click="moreInfo()">{{form.extraInfo.length != 0 ? 'Next' : 'Skip'}}</button>
</div>

<div ng-show="thankYou">
  <button id ="thankYouBtn" ng-click="thankYouFunction()">Home</button>
</div>

0 个答案:

没有答案