In this example we can show div element whose Id is "my-div" based on value of showDiv variable with ng-model
directive which will set the value of checkbox to showDiv variable.If ng-if
evaluates showDiv variable value is true then div will show otherwise it will hide.