Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to apply ng-model to checkbox
WhatsApp
Ajay Malik
Aug 05
2016
673
0
0
<!DOCTYPE html
>
<
html
>
<
script
src
=
"http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"
>
</
script
>
<
body
>
<
div
ng-app
>
<
form
>
clickme!
<
input
type
=
"checkbox"
ng-model
=
"my"
>
</
form
>
<
h1
ng-show
=
"my"
>
hello AngularJs
</
h1
>
</
body
>
</
html
>
AngularJs
checkbox
Up Next
How to apply ng-model to checkbox