Skip to content

Commit c91de3c

Browse files
committed
add angular-dialog-service-tests
1 parent c302f66 commit c91de3c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/// <reference path="angular-dialog-service.d.ts" />
2+
3+
4+
var options : angular.dialogservice.IDialogOptions = {};
5+
options.animation = true;
6+
options.backdrop = true;
7+
options.keyboard = true;
8+
options.backdropClass = "some-css-class";
9+
options.windowClass = "some-css-class";
10+
options.size = 'md';
11+
12+
var dialogs : angular.dialogservice.IDialogService;
13+
dialogs.error('Error','An unknown error occurred preventing the completion of the requested action.');
14+
dialogs.wait('Creating User','Please wait while we attempt to create user "Michael Conroy."<br><br>This should only take a moment.',50);
15+
dialogs.notify('Something Happened','Something happened at this point in the application that I wish to let you know about');
16+
dialogs.create('url/to/a/template','ctrlrToUse',{data: topass,anotherVar: 'value'},{});

0 commit comments

Comments
 (0)