So, im working with angular4 in my practice work and this is new for me. Luckyly, in order to get html elements and its values i used documen
documen
Try this:
TypeScript file code:
(document.getElementById("name")).value
HTML code: