Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-confirm-box

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-confirm-box

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
85
decreased by-12.37%
Maintainers
1
Weekly downloads
 
Created
Source

NgConfirm

This library was generated with Angular CLI version 14.2.0.

Features

  • Easy to install
  • Inbuilt Animation
  • configuartion is easy

Install

npm i ng-confirm-box

Setup

  • Add NgConfirmModule to App NgModule

  • import NgConfirmModule in app.module.ts

import { NgModule } from '@angular/core';
import { HeaderComponent } from './component/header/header.component';
import {NgConfirmModule} from 'ng-confirm-box'; <---- to be added

@NgModule({
  declarations: [
    HeaderComponent,

  ],
  imports: [
    NgConfirmModule <---- to be added
  ],

})
export class AppModule { }
  • use the selector in app.component.html file

Use

import { Component } from '@angular/core';
import { NgConfirmService } from 'ng-confirm-box';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {

  constructor(
    private confirmService: NgConfirmService <---to be injected
  ) { }

  ngOnInit(): void {
  }

  deleteEmployee(id: number) {
    this.confirmService.showConfirm("Are you sure want to Delete?",
     () => {
      //your logic if Yes clicked
    },
    () => {
      //yor logic if No clicked
    })
  }

}

Upcoming features

  • Dynamic Themes
  • Dynamic Animation

License

MIT


GitHub @SashikumarYadav  ·  LinkedIn @SashikumarYadav  ·  Medium @SashikumarYadav

FAQs

Package last updated on 09 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc