Skip to content

Commit aeb8afd

Browse files
committed
click button example for 720kb#110 and 720kb#127
1 parent 4bd6a65 commit aeb8afd

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

ng-click.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!doctype html>
2+
<html ng-app="myApp">
3+
<head>
4+
<link rel="stylesheet" type="text/css" href="dist/angular-tooltips.css">
5+
<style media="screen">
6+
body {
7+
8+
margin: 200px;
9+
}
10+
</style>
11+
<title>Angularjs Tooltips</title>
12+
</head>
13+
<body id="demo-container">
14+
<div ng-controller="MyCtrl as ctrl">
15+
<button type="text" ng-click="ctrl.clickMe()" tooltips tooltip-template="Hi">
16+
click me
17+
</button>
18+
</div>
19+
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
20+
<script type="text/javascript" src="dist/angular-tooltips.js"></script>
21+
<script type="text/javascript">
22+
var myApp = angular.module('myApp',['720kb.tooltips'])
23+
.controller('MyCtrl', function MyCtrl($scope) {
24+
25+
this.clickMe = function clickMe() {
26+
27+
alert('cliked');
28+
}
29+
});
30+
</script>
31+
</body>
32+
</html>

ng-model.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1>Working</h1>
1010
Name: <input type="text" ng-model="name1"/><br>
1111
Hello {{name1}}!
1212
<br><br>
13-
<h1>Not working</h1>
13+
<h1>Did not work</h1>
1414
Name: <input type="text" ng-model="name2" tooltips tooltip-template="Hi"/><br>
1515
Hello {{name2}}!
1616
</div>

0 commit comments

Comments
 (0)