When I click the button, default/init values are appended into the textArea but when I try to change the text (firstName/ middleName / lastName) in their respective field, clicking the button has no effect.
Associated code is spread across the following files: MainHTML, cashierApp.html, cashier.js, cashierCtrl.ctrl.js, cashierService.service.js and headTemplate.html
Main HTML page
<html ng-app="cashierAPP">
<head>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
  <title>Cashier-HomePage</title>
  <link href="header.css" rel="stylesheet">
  <link href="pageTemplate.css" rel="stylesheet">
</head>
<body ng-controller="cashierController">
  <ng-include src="'CashierApp.html'"></ng-include>
  <script src="http://127.0.0.1:8887/cashier.js"></script>
  <script src="http://127.0.0.1:8887/cashierCtrl.ctrl.js"></script>
  <script src="http://127.0.0.1:8887/cashierService.service.js"></script>
</body>
</html>
CashierApp.html
<div>
  <div>
    <ng-include src="'http://127.0.0.1:8887/headtemplate.htm'"></ng-include>
  </div>
  <div>
    <h4>Enter First name</h4><input type="text" ng-model="firstName"><br>
    <h4><input type="checkbox" ng-model="hasMiddle">Enter Middle name</h4>
    <input type="text" ng-show="hasMiddle" ng-model="middleName"><br>
    <h4>Enter last name</h4><input type="text" ng-model="lastName"><br><br>
    <button ng-click="getName()">Get Name</button><br>
    <h4> Your Full Name:     <textarea ng-bind="fullName" readonly></textarea> </h4>
  </div>
</div>
Cashier.js--
var cashierApp = angular.module("cashierAPP",[]);
CashierCtrl.ctrl.js
cashierApp.controller("cashierController", function($scope, cashierService) {
  $scope.firstName = "John";
  $scope.middleName = "0";
  $scope.lastName = "Doe";
  $scope.getName = function() {
    $scope.fullName = cashierService.NameIs($scope.firstName, $scope.middleName, $scope.lastName);
  }
});
CashierService.service.js
cashierApp.service("cashierService", function() {
    this.NameIs = function(a, b, c) {
        return a + " " + b + " " + c;
    }
});
headTemplate.html
<table cellspacing="50px" ; cellpaddinging="20px">
  <tr>
    <th>AngularJS Cashier Application</th>
    <th>This is my Global Nav item 2 </th>
    <th>This is my Global Nav item 3 </th>
    <th>Participant</th>
  </tr>
  <tr>
    <td>HOME</td>
    <td>ABOUT</td>
    <td>CALCULATIONS</td>
    <td>MORE...</td>
  </tr>
  <tr class="pageBody">
    <td>Put Widgets here...</td>
  </tr>
</table>

 
     
     
    