Only numbers with ngMask

Only number in an input with a maxLength controlling by ngMask module

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<div ng-app="app">
    <div class="container" ng-controller="Appctrl as apt">
      <input type="text" ng-model="phone" id="phoneInput" ng-change="apt.changePhoneInput(phone)">
    </div>
</div>

CSS

input[type="text"] {
  width: 280px;
}

JavaScript

var app = angular.module('app', []);
app.controller('Appctrl', Appctrl, '$scope');
function Appctrl($scope){
  this.changePhoneInput = function(phone) {
    var result = phone;
    console.log('phone', phone);
    result.replace(/[^+0-9\(\)]/gim,'');
    console.log('result', result);
    $scope.phone = result;
  };
}