<body ng-app="deneme">
<div ng-controller="w3tr">
<form novalidate class="simple-form">
isim: <input type="text" ng-model="user.isim" /><br />
cinsiyet: <input type="radio" ng-model="user.cinsiyet" value="erkek" />erkek
<input type="radio" ng-model="user.cinsiyet" value="kadın" />kadın<br />
<button ng-click="reset()">SIFIRLA</button>
<button ng-click="update(user)">KAYDET</button>
</form>
<pre>form = {{user | json}}</pre>
<pre>master = {{master | json}}</pre>
</div>
</body>
</html>
angular.module('deneme', [])
.controller('w3tr', ['test', function($scope) {
$scope.master= {};
$scope.update = function(user) {
$scope.master= angular.copy(user);
};
$scope.reset = function() {
angular.copy($scope.master, $scope.user);
};
$scope.reset();
}]);
This Pen doesn't use any external CSS resources.