-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Data entry mask #151
base: devel
Are you sure you want to change the base?
WIP: Data entry mask #151
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some work to be done. Thanks.
@@ -1,47 +1,67 @@ | |||
<div *ngIf="currency && currency === 'USD'" class="prefix symbol"> | |||
<span>$</span> | |||
</div> | |||
<input | |||
#input | |||
<div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¿para que hace falta un DIV? ¿para el ngIf? si es solo para eso, no es necerio, pon el if en el input y el text-area
un ng-content tambien hace lo mismo, sin añadir un elemento al DOM innecesario.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
añadir o quitar elementos de DOM a controles ya publicados tiene el efecto colateral de que puede romper selectores css
readonly="true" | ||
/> | ||
</div> | ||
<div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
@@ -7,6 +7,22 @@ import { Injectable } from '@angular/core'; | |||
export class RegexpService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Suggestion tiene la complejidad suficiente, para justificar que le implementemos test al 100%. Añadelos por favor.
- No necesitamos un servicio Angular, en el sentido que nadie va a inyectarlo y reemplazarlo desde el exterior.
Para simplicarlo, lo reconvertiria en clase (no servicio angular) probablemente con funcionalidad estatica (por ver).
#122