JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app>
    <div ng-controller="MainCtrl">
         <p> <a href="#" ng-click="getDetails()">Refresh</a>

        </p>
        <p>
            <input type="text" ng-model="customer.name">
        </p>
        <p>{{ customer.name }}</p>
    </div>
</div>

JavaScript

function MainCtrl($scope) {


    $scope.customer = {
        name: 'TTT',
        id: 0
    };

    $scope.getDetails = function ($scope) {
        $scope.customer.name = 'Test';

    };

}