mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 14:59:37 +08:00
Added controller and controllerAs to IModalOptions
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
4
types/angular-strap/index.d.ts
vendored
4
types/angular-strap/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user