Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including angular-confirmation-popover with all npm packages installed. Try it out:

require("@angular/common/package.json"); // @angular/common is a peer dependency. require("@angular/core/package.json"); // @angular/core is a peer dependency. var angularConfirmationPopover = require("angular-confirmation-popover")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

angular-confirmation-popover v6.0.0

An angular 10.0+ bootstrap confirmation popover

Angular confirmation popover

Sponsorship Build Status codecov npm version Twitter Follow


Table of contents


A simple angular 10.0+ directive to display a bootstrap styled confirmation popover when an element is clicked.

AngularJS 1.x version


  1. Install through npm:
npm install angular-confirmation-popover
  1. Install bootstrap (both v3 and v4 are supported). If not using bootstrap you could implement the popover styles yourself.

  2. Add the NgModule:

import { NgModule, Component } from '@angular/core';
import { ConfirmationPopoverModule } from 'angular-confirmation-popover';

  declarations: [MyComponent],
  imports: [
      confirmButtonType: 'danger', // set defaults here
  bootstrap: [MyComponent],
class MyModule {}
  1. Now use it within your component
  selector: 'my-component',
  template: `
      class="btn btn-outline-secondary"
      (confirm)="confirmClicked = true"
      (cancel)="cancelClicked = true"
      Click me!
class MyComponent {
  popoverTitle = 'Popover title';
  popoverMessage = 'Popover description';
  confirmClicked = false;
  cancelClicked = false;

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


All documentation is auto-generated from the source via compodoc and can be viewed here:

The main mwlConfirmationPopover directive options can be viewed here.


Prepare your environment

  • Install Node.js and NPM (should come with)
  • Install local dev dependencies: npm install while current directory is this repo

Development server

Run npm start to start a development server on port 8000 with auto reload + tests.


Run npm test to run tests once or npm run test:watch to continually run tests.


npm run release



RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free