2
Answers

take input value in component.ts file

Ramnath Bodke

Ramnath Bodke

6y
550
1
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)