/ngx-delete-confirm

angular delete confirm component

Primary LanguageJavaScriptMIT LicenseMIT

ngx delete confirm

Build Status codecov npm version devDependency Status GitHub issues GitHub stars GitHub license

Table of contents

About

Installation

Install through npm:

npm install --save ngx-delete-confirm

Then include in your apps module:

import { Component, NgModule } from '@angular/core';
import { ngxDeleteConfirmModule } from 'ngx-delete-confirm';

@NgModule({
  imports: [
    ngxDeleteConfirmModule.forRoot()
  ]
})
export class MyModule {}

Finally use in one of your apps components:

import { Component } from '@angular/core';

@Component({
  template: '<delete-confirm></delete-confirm>'
})
export class MyComponent {}

You may also find it useful to view the demo source.

Usage without a module bundler

<script src="node_modules/ngx-delete-confirm/bundles/ngx-delete-confirm.umd.js"></script>
<script>
    // everything is exported ngxDeleteConfirm namespace
</script>

Documentation

All documentation is auto-generated from the source via compodoc and can be viewed here: https://sijpesteijn.github.io/ngx-delete-confirm/docs/

License

MIT