My query is related to retrieving the favorite food input in TypeScript. The input field is defined as:
<input mdInput #try placeholder="Favorite food" value="Sushi">
In my TypeScript file, I have accessed this input using:
@ViewChild('try') myText : ElementRef;
Now, I am looking for a way to cast it to an HtmlElement function. Is there a method to do this without adding id="try"
to the mdInput and retrieving it using:
var cel= document.getElementById("try");