AngularJS Copy Input Value to other field.

HTML

<div ng-controller="Ctrl">
    <input type="text" ng-model="address1" on-keyup="alert('asd')" /><br/>
  
    <br/><br/>
    <input type="text" ng-model="postalAddress1" /><br/>
   
</div>

JavaScript

function Ctrl($scope) {
    $scope.copyToPostalAddr = function () {
        $scope.postalAddress1 = $scope.address1;
    }
   
}