My code
<form name="Form" id="form">
<input type="hidden" name="group" id="group" value="" ng-model="myModel.group">
<a ng-href="#" class="btn next-step" ng-click="myModel.group='live'">Select <i class="fa fa-arrow-circle-right"></i></a>
</form>
Before I click button, input's log looks like big object:
$$debounceViewValueCommit,
$$lastCommittedViewValue,
$$parseAndValidate,
$$rawModelValue,
$$runValidators,
$$setOptions,
$$success,
.........
But when I set value - field becomes a string.
So, hidden field should change it's value on button click.
And it also should be available for validation by $isValid and $dirty and ctr.
So how to set value in Angular way?
ng-hrefdirective in both your opening and closing tag.