Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
How to bind textbox in angular 2
Karthik Kumar
7y
1.9k
1
Reply
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
>
</
p
>
this is not binding also given classname.name in ngmodel
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Fire function from one to another controller
Text box is not binding in angular 2 html