Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 7b7cdf8

Browse files
aehardingpkozlowski-opensource
authored andcommitted
fix(modal): controllerAs not checked
This causes the controller to be added to the scope as a property "undefined"! Closes #2564
1 parent a0be450 commit 7b7cdf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/modal/modal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
377377
});
378378

379379
ctrlInstance = $controller(modalOptions.controller, ctrlLocals);
380-
if (modalOptions.controller) {
380+
if (modalOptions.controllerAs) {
381381
modalScope[modalOptions.controllerAs] = ctrlInstance;
382382
}
383383
}

0 commit comments

Comments
 (0)