Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <script type="text/ng-template" id="tpl1.html">
  Template 1
  </script>
  <script type="text/ng-template" id="tpl2.html">
  Template 2
  </script>
  <div ng-controller="TabCtrl">
    <ul>
      <li ng-click="showTemplate('tpl1.html')">Template 1</li>
      <li ng-click="showTemplate('tpl2.html')">Template 2</li>
    </ul>
    <div ng-include="currentTemplate"></div>
  </div>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers