Merge pull request #4181 from damianog/master

added controllerAs property to modal service settings
This commit is contained in:
Horiuchi_H
2015-04-23 18:34:16 +09:00
2 changed files with 7 additions and 0 deletions
@@ -131,6 +131,7 @@ testApp.controller('TestCtrl', (
var modalInstance = $modal.open({
backdrop: 'static',
controller: 'ModalTestCtrl',
controllerAs: 'vm',
keyboard: true,
resolve: {
items: ()=> {
+6
View File
@@ -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
*/