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
1
Answer
textbox binding angular2
raghavan s
7y
180
1
Reply
@Component({
selector:
'courses'
,
template:`.......
<input type=
"text"
[(ngModel)]=
"newCourse"
/>
<input type=
"button"
value=
"Add Course"
(click)=
"AddCourse()"
/>
})
export
class
CoursesComponent{
AddCourse()
{
this
.courses.push(
this
.newCourse);
}
}
This is not working please help
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
why reference parameters cannot be optional parameters?
Pre requisites for Client computer