mirror of https://github.com/nextcloud/contacts
16 lines
315 B
JavaScript
16 lines
315 B
JavaScript
angular.module('contactsApp')
|
|
.directive('telModel', function() {
|
|
return{
|
|
restrict: 'A',
|
|
require: 'ngModel',
|
|
link: function(scope, element, attr, ngModel) {
|
|
ngModel.$formatters.push(function(value) {
|
|
return value;
|
|
});
|
|
ngModel.$parsers.push(function(value) {
|
|
return value;
|
|
});
|
|
}
|
|
};
|
|
});
|