Edit The Code:
See Result »
Try it Yourself - ©
w3ii.com
<
!DOCTYPE
html
>
<
html
>
<
script
src
="/lib/angular-1.4.8.min.js"
>
<
/script
>
<
body
ng-app
=""
>
Show HTML:
<
input
type
="checkbox"
ng-model
="myVar"
>
<
div
ng-show
="myVar"
>
<
h1
>
Welcome
<
/h1
>
<
p
>
Welcome to my home.
<
/p
>
<
/div
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <script src="/lib/angular-1.4.8.min.js"></script> <body ng-app=""> Show HTML: <input type="checkbox" ng-model="myVar"> <div ng-show="myVar"> <h1>Welcome</h1> <p>Welcome to my home.</p> </div> </body> </html>