You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it's great that $modal already has support for the controller-as syntax, but the use of it is limited to registered controllers. It's not uncommon to see developers use anonymous function or local function as modal controller, without registering the function as an angular controller beforehand. This is where ControllerAs option comes in. Indeed, this is how it's done in many other popular modules like angular-route, ui-bootstrap, just to name a few.
The text was updated successfully, but these errors were encountered:
it's great that
$modal
already has support for the controller-as syntax, but the use of it is limited to registered controllers. It's not uncommon to see developers use anonymous function or local function as modal controller, without registering the function as an angular controller beforehand. This is whereControllerAs
option comes in. Indeed, this is how it's done in many other popular modules like angular-route, ui-bootstrap, just to name a few.The text was updated successfully, but these errors were encountered: