forked from 720kb/angular-tooltips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ng-click.html
32 lines (29 loc) · 891 Bytes
/
ng-click.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!doctype html>
<html ng-app="myApp">
<head>
<link rel="stylesheet" type="text/css" href="dist/angular-tooltips.css">
<style media="screen">
body {
margin: 200px;
}
</style>
<title>Angularjs Tooltips</title>
</head>
<body id="demo-container">
<div ng-controller="MyCtrl as ctrl">
<button type="text" ng-click="ctrl.clickMe()" tooltips tooltip-template="Hi">
click me
</button>
</div>
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="dist/angular-tooltips.js"></script>
<script type="text/javascript">
var myApp = angular.module('myApp',['720kb.tooltips'])
.controller('MyCtrl', function MyCtrl($scope) {
this.clickMe = function clickMe() {
alert('cliked');
}
});
</script>
</body>
</html>