mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
Merge pull request #4181 from damianog/master
added controllerAs property to modal service settings
This commit is contained in:
@@ -131,6 +131,7 @@ testApp.controller('TestCtrl', (
|
||||
var modalInstance = $modal.open({
|
||||
backdrop: 'static',
|
||||
controller: 'ModalTestCtrl',
|
||||
controllerAs: 'vm',
|
||||
keyboard: true,
|
||||
resolve: {
|
||||
items: ()=> {
|
||||
|
||||
@@ -237,6 +237,12 @@ declare module angular.ui.bootstrap {
|
||||
*/
|
||||
controller?: any;
|
||||
|
||||
/**
|
||||
* an alternative to the controller-as syntax, matching the API of directive definitions.
|
||||
* Requires the controller option to be provided as well
|
||||
*/
|
||||
controllerAs?: string;
|
||||
|
||||
/**
|
||||
* members that will be resolved and passed to the controller as locals; it is equivalent of the `resolve` property for AngularJS routes
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user