This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
$modal.open() does not support controllerAs option #2242
Comments
@zandroid it is supported already but using the syntax used by the the this.modal2 = function() {
$modal.open({
controller: 'modalController2 as modal',
templateUrl: 'modal2.html'
});
}; Check this http://plnkr.co/edit/O9ALTGT83OZZCIryaLw2?p=preview |
@pkozlowski-opensource, Thanks.
|
pkozlowski-opensource
added a commit
that referenced
this issue
May 22, 2014
It works when a controller is defined by string. But I'm not sure that it works for inline function (I'm think it does not). Please look at my message above, I was defined controller as inline function, not a string. You can use the plunker sample for test writing. |
Thank you for fix. |
dearlordylord
pushed a commit
to dearlordylord/bootstrap
that referenced
this issue
Jun 18, 2014
dearlordylord
pushed a commit
to dearlordylord/bootstrap
that referenced
this issue
Jun 18, 2014
OronNadiv
pushed a commit
to lanetix/bootstrap
that referenced
this issue
Nov 18, 2014
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Angular supports the option "controllerAs" for directives. I would like to see it for $modal.open() also. Please, look at a sample plunker.
The text was updated successfully, but these errors were encountered: