Simple confirmation modal
yarn add @ovh-ux/ng-ovh-ui-confirm-modal
import angular from 'angular';
import ngOvhUiConfirmModal from '@ovh-ux/ng-ovh-ui-confirm-modal';
angular.module('myApp', [ngOvhUiConfirmModal]);
<div data-ng-controller="XdslModemResetCtrl as ResetCtrl">
<button
<!--
data-ng-really-click: This parameter is required.
`resetModem()` will be called if you accept the confimation message.
-->
data-ng-really-click="ResetCtrl.resetModem()"
<!--
data-ng-really-undo: This parameter is optional
`undo()` will be called if you cancel the confimation message.
data-ng-really-undo="ResetCtrl.undo()"
-->
data-ng-really-message="{{ 'xdsl_modem_reset_really' | translate }}"
data-ng-really-confirm="{{ 'ok' | translate }}"
data-ng-really-cancel="{{ 'cancel' | translate }}">
</button>
</div>
yarn test
Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.
BSD-3-Clause © OVH SAS