Ramnath Bodke

Ramnath Bodke

  • 1.9k
  • 219
  • 11.5k

take input value in component.ts file

Apr 13 2018 12:40 AM
have 2 input text in .html file
 
<input type="text" [(ngModel)]="text1">
 
<input type="text" #text2>
 
now, want take both values in component.ts file. How should i take both texbox value?  

Answers (2)