<input type = "text" (focus)="this.type='date'">
Changing the input type when the user focuses on input field, default type is text.
For example this works in plain javascript, the type remains as text until the user moves the cursor inside the input field
<input type = "text" onFocus="this.type='date'">