Dapat menggunakan variable $last , seperti pada contoh berikut :
<ion-slide-box show-pager="false" on-slide-changed="onSlideChanged(index)" active-slide="currentIndex">
<ion-slide ng-repeat="item_pertanyaan in polling.pertanyaans">
<div class="box">
{{item_pertanyaan.pertanyaan}}
<ion-radio ng-repeat="(key, value) in item_pertanyaan.pilihan_jawaban" name='pilihan_jawaban_{{item_pertanyaan.id}}' ng-model='data.pilihan_jawaban[item_pertanyaan.id]' ng-value="'{{key}}'">{{value}}</ion-radio>
</div>
<div ng-if="$last">
<button type="submit" name="submit" class="button button-block button-balanced">Simpan</button>
</div>
</ion-slide>
Referensi
- ion-slide-box, http://ionicframework.com/docs/api/directive/ionSlideBox/
- Ionic Example: ion-slide-box, http://www.raymondcamden.com/2015/09/16/ionic-example-ion-slide-box
No comments:
Post a Comment