@ovh-ux/ng-ovh-ui-confirm-modal

Simple confirmation modal

Usage no npm install needed!

<script type="module">
  import ovhUxNgOvhUiConfirmModal from 'https://cdn.skypack.dev/@ovh-ux/ng-ovh-ui-confirm-modal';
</script>

README

ng-ovh-ui-confirm-modal

Simple confirmation modal

npm version Downloads Dependencies Dev Dependencies

Install

yarn add @ovh-ux/ng-ovh-ui-confirm-modal

Usage

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>

Test

yarn test

Contributing

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.

License

BSD-3-Clause © OVH SAS