aboutsummaryrefslogtreecommitdiffstats
path: root/example/index.html
diff options
context:
space:
mode:
authorNeylor Ohmaly2014-02-04 21:13:29 -0200
committerNeylor Ohmaly2014-02-04 21:13:29 -0200
commit68f2f1f0119e63890871bce7819e182152566160 (patch)
treeb33fba37dce537362ed3950751ef046e7422c282 /example/index.html
parent51f30447ed5269da0d0ebc2679984908ff899e3a (diff)
downloadnsPopover-68f2f1f0119e63890871bce7819e182152566160.tar.bz2
Created the basic popover.0.0.1
Diffstat (limited to 'example/index.html')
-rw-r--r--example/index.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/example/index.html b/example/index.html
new file mode 100644
index 0000000..015e41d
--- /dev/null
+++ b/example/index.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html ng-app="nsPopoverExample">
+<head>
+ <meta charset="utf-8">
+ <title>nsPopover demo</title>
+
+ <link rel="stylesheet" href="../build/nsPopover.css">
+
+ <style>
+ body {
+ font-family: arial, sans-serif;
+ }
+
+ a {
+ cursor: pointer;
+ }
+ </style>
+
+ <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.js"></script>
+ <script src="../build/nsPopover.js"></script>
+ <script src="index.js"></script>
+
+ <script type="text/ng-template" id="popover">
+ <ul>
+ <li ng-repeat="item in items"><a>{{item.name}}</a></li>
+ </ul>
+ </script>
+
+</head>
+<body ng-controller="MainCtrl">
+
+<button ns-popover ns-popover-template="popover" ns-popover-trigger="mouseover">
+ Menu
+</button>
+</body>
+</html> \ No newline at end of file