File tree Expand file tree Collapse file tree 4 files changed +36
-124
lines changed
Expand file tree Collapse file tree 4 files changed +36
-124
lines changed Original file line number Diff line number Diff line change 234234 , tipArrowElement = angular . element ( window . document . createElement ( 'tip-arrow' ) )
235235 , whenActivateMultilineCalculation = function whenActivateMultilineCalculation ( ) {
236236
237- return tipContElement . html ( ) ;
238- }
237+ return tipContElement . html ( ) ;
238+ }
239239 , calculateIfMultiLine = function calculateIfMultiLine ( newValue ) {
240240
241241 if ( newValue !== undefined &&
583583 return {
584584 'restrict' : 'A' ,
585585 'transclude' : 'element' ,
586+ 'priority' : 1001 ,
587+ 'terminal' : true ,
586588 'link' : linkingFunction
587589 } ;
588590 } ] ;
Original file line number Diff line number Diff line change 224224 , tipArrowElement = angular . element ( window . document . createElement ( 'tip-arrow' ) )
225225 , whenActivateMultilineCalculation = function whenActivateMultilineCalculation ( ) {
226226
227- return tipContElement . html ( ) ;
228- }
227+ return tipContElement . html ( ) ;
228+ }
229229 , calculateIfMultiLine = function calculateIfMultiLine ( newValue ) {
230230
231231 if ( newValue !== undefined &&
573573 return {
574574 'restrict' : 'A' ,
575575 'transclude' : 'element' ,
576+ 'priority' : 1001 ,
577+ 'terminal' : true ,
576578 'link' : linkingFunction
577579 } ;
578580 } ;
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+ < title > Angularjs Tooltips</ title >
6+ </ head >
7+ < body id ="demo-container ">
8+ < div ng-controller ="MyCtrl ">
9+ < h1 > Working</ h1 >
10+ Name: < input type ="text " ng-model ="name1 "/> < br >
11+ Hello {{name1}}!
12+ < br > < br >
13+ < h1 > Not working</ h1 >
14+ Name: < input type ="text " ng-model ="name2 " tooltips tooltip-template ="Hi "/> < br >
15+ Hello {{name2}}!
16+ </ div >
17+ < script type ="text/javascript " src ="bower_components/angular/angular.js "> </ script >
18+ < script type ="text/javascript " src ="dist/angular-tooltips.js "> </ script >
19+ < script type ="text/javascript ">
20+ var myApp = angular . module ( 'myApp' , [ '720kb.tooltips' ] )
21+ . controller ( 'MyCtrl' , function MyCtrl ( $scope ) {
22+
23+ $scope . name1 = 'name1' ;
24+ $scope . name2 = 'name2' ;
25+ } ) ;
26+ </ script >
27+ </ body >
28+ </ html >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments