A tiny AngularJS directive to set ng-model (and consequently field value) based on form fields attributes.