<button class="phoneNumber" ng-click="data.tes = 1">1</button>
For more than 1 button
in your controller
$scope.buttons = [1,2,3,4,5,6,7,8,9]
and in your markup
<button ng-repeat="button in buttons" ng-click="data.tes = button">{{button}}</button>
EDIT
You can also declare your object in the controller
$scope.data = {};
source share