Skip to content

Instantly share code, notes, and snippets.

@cburgmer
Created September 30, 2013 15:33
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 cburgmer/6765572 to your computer and use it in GitHub Desktop.
Save cburgmer/6765572 to your computer and use it in GitHub Desktop.
Minimal test case for tooltip-html-unsafe issue in AngularUI Bootstrap
<!DOCTYPE html>
<html ng-app="minimalTestCase">
<head>
<meta charset="UTF-8">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<!--script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script-->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.6.0/ui-bootstrap-tpls.js"></script>
<style>
div {
padding: 10px;
}
.tooltip {
top: 0 !important;
left: 0 !important;
}
</style>
</head>
<body>
<div tooltip-html-unsafe="YAY" tooltip-trigger="click">Check me out!</div>
<script>
angular.module("minimalTestCase", ['ui.bootstrap']);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment