default is gluttony, ng-model was messing things up

api
Matt Huntington 10 years ago
parent 358fe0d06d
commit 9574e7cbfe

@ -14,6 +14,7 @@ app.controller('TransgressionsController', ['$http', function($http){
});
this.SIN_TYPES = [ 'Gluttony', 'Greed', 'Anger', 'Pride', 'Lust', 'Sloth', 'Envy'];
this.newTransgressionSinType = 'Gluttony';
this.createTransgression = function(){
var csrf = document.querySelector('meta[name="csrf-token"]').getAttribute('content');

@ -21,8 +21,8 @@
</ul>
<h2>The Flesh is Weak</h2>
<form ng-submit="transgressionsCtrl.createTransgression()">
I feast upon your weakness:
<select ng-model="transgressionsCtrl.newTransgressionSinType">
<option selected>Your Weakness:</option>
<option
value="{{SIN_TYPE}}"
ng-repeat="SIN_TYPE in transgressionsCtrl.SIN_TYPES track by $index">

Loading…
Cancel
Save