Commit 6d11560da27fdbe758a6ad7d8d0c8d1b976ea895
1 parent
a598f74c0c
Exists in
master
and in
1 other branch
Espacios
Showing
1 changed file
with
3 additions
and
6 deletions
 
Show diff stats
src/js/soloPositivos-directive.js
| ... | ... | @@ -8,11 +8,8 @@ angular.module('focaDirectivas') | 
| 8 | 8 | return '' + value; | 
| 9 | 9 | }); | 
| 10 | 10 | |
| 11 | - if(!ngModel) return; | |
| 12 | - | |
| 13 | - function test(texto) { | |
| 14 | - console.log('Texto: ', element); | |
| 15 | - console.log('Valor 2: ',attr); | |
| 11 | + if (!ngModel) return; | |
| 12 | + function modificar(texto) { | |
| 16 | 13 | if (texto) { | 
| 17 | 14 | var cambioInput = texto.replace('-',''); | 
| 18 | 15 | |
| ... | ... | @@ -23,7 +20,7 @@ angular.module('focaDirectivas') | 
| 23 | 20 | return cambioInput; | 
| 24 | 21 | } | 
| 25 | 22 | } | 
| 26 | - ngModel.$parsers.push(test); | |
| 23 | + ngModel.$parsers.push(modificar); | |
| 27 | 24 | } | 
| 28 | 25 | }; | 
| 29 | 26 | }); | 
| 30 | 27 | \ No newline at end of file |