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
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: src/modal/docs/readme.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
`$modal` is a service to quickly create AngularJS-powered modal windows.
1
+
`$uibModal` is a service to quickly create AngularJS-powered modal windows.
2
2
Creating custom modals is straightforward: create a partial view, its controller and reference them when using the service.
3
3
4
-
The `$modal` service has only one method: `open(options)` where available options are like follows:
4
+
The `$uibModal` service has only one method: `open(options)` where available options are like follows:
5
5
6
6
*`templateUrl` - a path to a template representing modal's content
7
7
*`template` - inline template representing the modal's content
8
-
*`scope` - a scope instance to be used for the modal's content (actually the `$modal` service is going to create a child scope of a provided scope). Defaults to `$rootScope`
8
+
*`scope` - a scope instance to be used for the modal's content (actually the `$uibModal` service is going to create a child scope of a provided scope). Defaults to `$rootScope`
9
9
*`controller` - a controller for a modal instance - it can initialize scope used by modal. Accepts the "controller-as" syntax in the form 'SomeCtrl as myctrl'; can be injected with `$modalInstance`
10
10
*`controllerAs` - an alternative to the controller-as syntax, matching the API of directive definitions. Requires the `controller` option to be provided as well
11
11
*`bindToController` - when used with `controllerAs` & set to `true`, it will bind the $scope properties onto the controller directly
@@ -20,7 +20,7 @@ The `$modal` service has only one method: `open(options)` where available option
20
20
*`size` - optional suffix of modal window class. The value used is appended to the `modal-` class, i.e. a value of `sm` gives `modal-sm`
21
21
*`openedClass` - class added to the `body` element when the modal is opened. Defaults to `modal-open`
22
22
23
-
Global defaults may be set for `$modal` via `$modalProvider.options`.
23
+
Global defaults may be set for `$uibModal` via `$modalProvider.options`.
24
24
25
25
The `open` method returns a modal instance, an object with the following properties:
0 commit comments