ng-show, ng-hide

by santhosh lanka

HTML

<div ng-app>
    <div ng-controller="showCrtl">       
        <div class="block">
            <input type="checkbox" ng-model="showDom"> 
            <span ng-show="showDom">Show me</span>
        </div>
       
        
    </div>
</div>

CSS

.block{
    height:60px;
}

JavaScript

function showCrtl($scope){
alert($scope.showCon);
    $scope.showCon=function(con){
        $scope.clickOn=con;
        alert($scope.showCon);
    }
}