 type="radio" ng-model="user.gender" value="male" />male
      <input type="radio" ng-model="user.gender" value="female" />female<br />
      <button ng-click="reset()">RESET</button>
      <button ng-click="update(user)">SAVE</button>
    </form>
  </div>

  <style type="text/css">
    .css-form input.ng-invalid.ng-dirty {
      background-color: #FA787E;
    }

    .css-form input.ng-valid.ng-dirty {
      background-color: #78FA89;
    }
  </style>

  <script>
    angular.module('formExample', [])
      