ANGULAR - var in all scope
<input type="text" name="firstName" ng-model="person.firstName" required />
<input id="lastNameEdit" type="text" name="lastName" ng-model="person.lastName" required />
<script>
angular.module("mainModule", [])
.controller("mainController", function ($scope)
{
$scope.person = {};
});
</script>