Edit in JSFiddle

<body ng-app >
  <div ng-controller="simpleController">
    <strong>First name:</strong> {{firstName}}<br />
    <strong>Last name:</strong> {{lastName}}</span><br />
    <strong>Full name:</strong> {{getFullName()}}<br />
    <br />
    <label>Set First name: <input type="text" ng-model="firstName"/></label><br />
    <label>Set Last name: <input type="text" ng-model="lastName"/></label>
  </div>
</body>