AngularJS ng-show, based on a condition Examples




AngularJS ng-show, based on a condition

<html>
   <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js">
   </script>
   <body>
      <div ng-app="" ng-init="hour=13">
         <p ng-show="hour > 12">I am visible.</p>
      </div> 
   </body>
</html>

Output