Created
January 31, 2013 01:09
-
-
Save dearfrankg/4678978 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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