Sujeet Raman

Sujeet Raman

  • 862
  • 927
  • 354k

How to bind textbox in angular 2

May 3 2017 10:04 AM
How to bind and edit my text box in angular 2.
I need to bind data from api and edit
 
<div>
<button class="btn btn-primary" (click)="GetTax(ID)">GetValues</button>
</div>


<div class="col-md-2 col-md-offset-3">
<p> Name <input name="tn" type="text" [(ngModel)]="Name" /> </p>
<p>&nbsp;</p>
 
this is not binding  also given classname.name in ngmodel 

Answers (2)