I've got a form that doesn't allow you to check checkboxes on the first entry, which is very weird. It's almost like it doesn't register the click.
If however, you submit the form and try and check the same checkboxes after submitting the first form, it allows you to check the checkboxes. Why is this?
This is what my checkboxes look like:
<label ng-repeat="sector in sectors" for="{{sector}}">
<input type="checkbox" id="{{sector}}" value="{{sector}}" ng-model="newService.sectors[sector]">{{sector}}
</label>
I'm also trying to work out how to implement $setPristine on this form so it gives the form a class of .ng-pristine when submitted.
I'm very new to Angular and am slowly trying to understand how this all works.
I've set up a Fiddle here: http://jsfiddle.net/nh63w6e0/2/
Any help is appreciated. Thanks in advance!