Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="myApp" ng-controller="myCtrl">
<head>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <h3 ng-show="foo">{{'some string '+foo}}</h3>
  <div>{{(foo) ? 'some string '+foo : ''}}</div>
  
  <h3 ng-show="bar">{{'some string '+bar}}</h3>
  <div>{{(bar) ? 'some string '+bar : ''}}</div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers