Skip to content

Instantly share code, notes, and snippets.

@dearfrankg
Created January 31, 2013 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dearfrankg/4678978 to your computer and use it in GitHub Desktop.
Save dearfrankg/4678978 to your computer and use it in GitHub Desktop.
<!doctype html>
<html ng-app="plunker" xmlns:ng="http://angularjs.org" >
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.js"></script>
<script src="http://angular-ui.github.com/bootstrap/ui-bootstrap-tpls-0.1.0-SNAPSHOT.js"></script>
<script src="example.js"></script>
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet">
</head>
<body>
<!-- ######## Support for IE8+ -->
<!--[if lt IE 9]>
<script>
// ########## ANGULAR-JS WAY OF DEALING WITH IE
document.createElement('ng-include');
document.createElement('ng-pluralize');
document.createElement('ng-view');
document.createElement('tabs');
document.createElement('pane');
</script>
<script src="json3.min.js"></script>
<script src="es5-shim.min.js"></script>
<![endif]-->
<div ng-controller="TabsDemoCtrl">
<tabs>
<pane heading="Static title">Static content</pane>
<pane ng-repeat="pane in panes" heading="{{pane.title}}" active="pane.active">{{pane.content}}</pane>
</tabs>
<div class="row-fluid">
<button class="btn" ng-click="panes[0].active = true">Select second tab</button>
<button class="btn" ng-click="panes[1].active = true">Select third tab</button>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment