ng-show with hardcoded value

Description

The following code shows how to use ng-show with hardcoded value.

Example


<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script>
</head><!--   w  w w  . ja va 2  s .  co  m-->
<body>
  <div ng-app>
    <p ng-show="true">This paragraph is visible.</p>
    <p ng-show="false">This paragraph is hidden.</p>
  </div>
</body>
</html>

Click to view the demo





















Home »
  AngularJS »
    AngularJS Example »




Controller
Directives
Expression
Filter
Form
Inject
Scope
Server
Style
Template
Utilities