forked from mgcrea/angular-strap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdropdown.demo.js
More file actions
25 lines (19 loc) · 837 Bytes
/
dropdown.demo.js
File metadata and controls
25 lines (19 loc) · 837 Bytes
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
'use strict';
angular.module('mgcrea.ngStrapDocs')
.config(function($dropdownProvider) {
angular.extend($dropdownProvider.defaults, {
html: true
});
})
.controller('DropdownDemoCtrl', function($scope, $alert) {
$scope.dropdown = [
{text: '<i class="fa fa-download"></i> Another action', href: '#anotherAction', active: true},
{text: '<i class="fa fa-globe"></i> Display an alert', click: '$alert("Holy guacamole!")'},
{text: '<i class="fa fa-external-link"></i> External link', href: '/auth/facebook', target: '_self'},
{divider: true},
{text: 'Separated link', href: '#separatedLink'}
];
$scope.$alert = function(title) {
$alert({title: title, content: 'Best check yo self, you\'re not looking too good.', placement: 'top', type: 'info', keyboard: true, show: true});
};
});