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="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <button ng-click="login()">Login</button>
  <button ng-click="logout()">Logout</button>
  <div ng-repeat="post in showPosts">
    <p>{{post}}</p>
    <button ng-show="user.role==='admin'" ng-click="deletePost($index)">Delete Post</button>
    <hr>
  </div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers