2.1.0 (2016-05-06)
2.0.0 (2016-05-01)
- focusButton: allow either the confirm or cancel button to be focused when the popover is open (a1328a7), closes #20
- isolateScope: the directive no longer requires an isolate scope (72ce933)
- focusButton:
focus-confirm-button
has been removed and replaced withfocus-button
Now by default neither button will be focused, compared to previously where the confirm button would always be focused.
Before:
<button mwl-confirm focus-confirm-button="true"></button>
After:
<button mwl-confirm focus-button="confirm"></button>
Can also be configured globally with setting the focusButton
property of the confirmationPopoverDefaults
to either confirm
or cancel
like so:
.run(function(confirmationPopoverDefaults) {
confirmationPopoverDefaults.focusButton = 'confirm'; // restore the old behaviour in 1.x
});
- isolateScope: The directive will only function as an attribute directive and not an element directive. This was undocumented so shouldn't affect any apps
The template has also changed, so if you were using a custom template then you will need to update it.
1.0.1 (2016-04-20)
- mark
focusConfirmButton
andisDisabled
as optional (7c3dc30) - isOpen: only update
isOpen
when the popover visibility is actually changed (6d78209), closes #18
1.0.0 (2015-12-16)
- Stable API!
- focus-confirm-button: Rename handle-focus option to focus-confirm-button (6455cc2)
- focus-confirm-button: The handle-focus directive option has been renamed to focus-confirm-button.
confirmationPopoverDefaults.handleFocus has been renamed to confirmationPopoverDefaults.focusConfirmButton
0.7.0 (2015-11-16)
- Add an
is-disabled
attribute for disabling the popover.
- Allow the default popover template to be changed either globally in the
confirmationPopoverDefaults.templateUrl
property or by passing atemplate-url
property to the popover. - Expose the popover element on the controller so other directives can access it
- Don't leak the module name characters into the global space
- Support ui-bootstrap 0.14.0 onwards
- BREAKING (for npm users only): Use dist files when installing through npm. You will now need to require the
angular-bootstrap-confirm/src/ui-bootstrap-position
file or the fullangular-ui-bootstrap
module first (See the readme for an example)
- Ignore bower source files
- Allow handle-focus to be set to false if set as an attribute.
- Auto focus the confirm button when opening the popover. Thanks to @andreptb!
- Make
is-open
optional for angular 1.3 compatibility
- Add is-open property to control the visibility of the popover
- BREAKING: Replace the confirmationPopover provider with a much simpler confirmationPopoverDefaults value
- Remove the off click dependency
- Build with webpack and publish to npm
- Mark angular sanitize as a dependency and not a dev dependency
- Ensure angular 1.4 compatibility
Very first, initial release