-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
49 lines (43 loc) · 1.31 KB
/
example.html
File metadata and controls
49 lines (43 loc) · 1.31 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html ng-app="app">
<head>
<title>AngularJS Confirm Dialog</title>
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="src/css/ngConfirmDialog.css">
</head>
<body ng-controller="Ctrl as ctrl">
<div>
<button ng-click="ctrl.shout()"
ng-confirm-dialog>
Action
</button>
</div>
<div>
<a href="javascript:;"
ng-click="ctrl.foo()"
ng-confirm-dialog
header-text="Ali ste prepričani?"
content="Ali ste prepričani, da to res želite? :-)"
yes-text="Da"
no-text="Ne">
Akcija
</a>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.6/angular.min.js"></script>
<script type="text/javascript" src="https://code.angularjs.org/1.4.6/angular-animate.min.js"></script>
<script type="text/javascript" src="src/js/ngConfirmDialog.js"></script>
<script type="text/javascript">
var app = angular.module('app', ['ngAnimate', 'jkuri.confirmdialog']);
app.controller('Ctrl', [function() {
var self = this;
self.shout = function () {
console.log('DA YES!');
};
self.foo = function () {
alert('Dobro!');
};
}]);
</script>
</body>
</html>