For example, If I have a scope value: $scope.bankInfo = '808,CityBank'; And an input field: <input name="bank_number" ng-model="bankInfo " /> I don't know what is the proper way to bind my input field only to digit part (that is 808). Should I use custom directive?
