Added controller and controllerAs to IModalOptions

This commit is contained in:
Matthias Kannwischer
2017-08-24 16:59:49 +02:00
parent 76a13f1ad8
commit 1f847583a5
2 changed files with 5 additions and 1 deletions

View File

@@ -30,6 +30,8 @@ namespace angularStrapTests {
myOtherModalOptions.scope = $scope;
myOtherModalOptions.template = 'modal/docs/modal.demo.tpl.html';
myOtherModalOptions.show = false;
myOtherModalOptions.controller = demoCtrl;
myOtherModalOptions.controllerAs = "ctrl";
var myOtherModal = $modal(myOtherModalOptions);

View File

@@ -1,4 +1,4 @@
// Type definitions for angular-strap v2.2.x
// Type definitions for angular-strap v2.3.x
// Project: http://mgcrea.github.io/angular-strap/
// Definitions by: Sam Herrmann <https://github.com/samherrmann>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -42,6 +42,8 @@ declare namespace mgcrea.ngStrap {
keyboard?: boolean;
show?: boolean;
container?: string | boolean;
controller?: any;
controllerAs?: string;
template?: string;
templateUrl?: string;
contentTemplate?: string;