angular reactive form get form control template

JavaScript
formgroup.get('controlname')
loginForm.get('username').valid && loginForm.get('username').touched
Source

Also in JavaScript: