forked from 720kb/angular-tooltips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ng-model.html
28 lines (27 loc) · 908 Bytes
/
ng-model.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
<!doctype html>
<html ng-app="myApp">
<head>
<link rel="stylesheet" type="text/css" href="dist/angular-tooltips.css">
<title>Angularjs Tooltips</title>
</head>
<body id="demo-container">
<div ng-controller="MyCtrl">
<h1>Working</h1>
Name: <input type="text" ng-model="name1"/><br>
Hello {{name1}}!
<br><br>
<h1>Did not work</h1>
Name: <input type="text" ng-model="name2" tooltips tooltip-template="Hi"/><br>
Hello {{name2}}!
</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) {
$scope.name1 = 'name1';
$scope.name2 = 'name2';
});
</script>
</body>
</html>