1.0.0 • Published 4 years ago

ng-unifirm v1.0.0

Weekly downloads
5
License
-
Repository
-
Last release
4 years ago

ng-unifirm

Simple library for universal ( app-wide ) use modal window of action confirmation.

Installation

add ng-unifirm to your app dependencies inside package.json

Usage

Add ConfirmModule import to your AppModule:

import { ConfirmModule } from "ng-unifirm";

Inside your app entry html file ( app.component.html by default ) add

<ng-unifirm></ng-unifirm>

Then use @Confirm() decorator before any method in your app, to call a modal on every said method execution. After user makes a decision in the modal it will either call the method or do nothing based on if the action was approved or declined respectively.