File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments