I've seen that in angle 2 instead of using ngModel I can put something like this:
<input type="text" name="txtnombre" #Nombre />
<button (click) = "validarNombre(#Nombre)" > Validar </ button>
I can not understand well when this type of variable should be used with # and what is the advantage of using this instead of this
<input type="text" name="txtnombre" [(ngModel)]="nombre" />
Could someone explain to me? thanks.