jacodelucia
5/15/2015 - 6:53 PM

ANGULAR - var in all scope

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>