old_contents: angular
    .module('tas', [])
    .controller('TasController', function () {
      var vm = this;
  
      vm.data = [
        {
          nickName: 'TAdam',
          name: 'Adam',
          firstName: 'Adam',
          lastName: 'Kèésecker',
          current: true
        },
        {
          nickName: 'ZAdam',
          name: 'Adam',
          firstName: 'Zöe',
          lastName: 'Ames',
          current: true
        },
        {
          nickName: 'JuAdam',
          name: 'Adam',
          firstName: 'Juan',
          lastName: 'Rødrįguež',
          current: true
        },
        {
          nickName: 'BrAdam',
          name: 'Adam',
          firstName: 'Brian',
          lastName: 'Hiått',
          current: false
        },
        {
          nickName: 'BAdam',
          name: 'Adam',
          firstName: 'Adam',
          lastName: 'Barñhærd',
          current: false
        }
      ];
  
      vm.addTA = function () {
        var obj = {
          name: vm.newName,
          nickName: vm.newNickname,
  		firstName: vm.newFirstName,
  		lastName: vm.newLastName
        };
  
        vm.data.push(obj);
      }
  
      vm.removeTA = function (person) {
        var index = vm.data.indexOf(person);
        vm.data.splice(index, 1);
      };
  
    });
  
new_contents: angular
    .module('tas', [])
    .controller('TasController', function () {
      var vm = this;
  
      vm.data = [
        {
          nickName: 'TAdam',
          name: 'Adam',
          firstName: 'Adam',
          lastName: 'Kèésecker',
          current: true
        },
        {
          nickName: 'ZAdam',
          name: 'Adam',
          firstName: 'Zöe',
          lastName: 'Ames',
          current: true
        },
        {
          nickName: 'JuAdam',
          name: 'Adam',
          firstName: 'Juan',
          lastName: 'Rødrįguež',
          current: true
        },
        {
          nickName: 'BrAdam',
          name: 'Adam',
          firstName: 'Brian',
          lastName: 'Hiått',
          current: false
        },
        {
          nickName: 'BAdam',
          name: 'Adam',
          firstName: 'Adam',
          lastName: 'Barñhærd',
          current: false
        }
      ];
  
      vm.newTA = {};
  
      vm.addTA = function () {
        vm.newTA.name = 'Adam';
        vm.newTA.nickName = vm.newTA.firstName[0].toUpperCase() + 'Adam';
  
        vm.data.push(vm.newTA);
        _clearNewTA();
      };
  
      vm.removeTA = function (person) {
        var index = vm.data.indexOf(person);
        vm.data.splice(index, 1);
      };
  
      function _clearNewTA() {
        vm.newTA = {};
      }
  
    });
  
subject: add clear input function. add new ta object