@Primotus wrote:
Hello
Im trying to use the ionic toggle along with ng-true-value and ng-false-value. The ng-true-value state works great. However ng-false-value always sets ng-model to undefined. Has anyoneelse had this problem?
<ion-toggle id="{{field.sourceField.sourceFieldId}}" name="{{field.sourceField.sourceFieldId}}" ng-model="model.value" ng-required="{{field.displayFormat.required}}" toggle-class="toggle-calm" ng-true-value="'{{field.ddEntry.options.optionsList[0].id}}'" ng-false-value="'{{field.ddEntry.options.optionsList[0].id}}'" validation-sounds="{{field.displayFormat.validationSounds}}" val-bubble> <span>{{model.value}}</span> <span ng-if="!field.displayFormat.required" class="input-label input-label-arvak">{{field.ddEntry.name}}</span> <span ng-if="field.displayFormat.required" class="input-label input-label-arvak"><i class="icon ion-asterisk arvak-field-warning-splat"></i>{{field.ddEntry.name}}</span> <span class="input-label-error" ng-class="{'invisible-nospace': !validation.requiredVisible || (formContainer[field.sourceField.sourceFieldId].$valid) || !field.displayFormat.required }"> <i class="icon ion-alert-circled error"></i>Required </span> </ion-toggle>
Posts: 2
Participants: 2