0
 <button type="button" ng-click="delete()" confirm-if="checked" confirm="Are you sure, {{name}}?">Delete</button>

this is working for button and i am able to get popup but for link, it is not working fine.Following is my code

 i want the confirm popup on clicking the link instead of button
<a ng-click="delete()" confirm-if="checked" confirm="Are you sure you want to delete it anyhow?">delete</a>      

1 Answers1

0

You can change the style of the button that works to look like a link. Detailed answer.

HTML:

<button class="link-button" type="button" ng-click="delete()" confirm-if="checked" confirm="Are you sure, {{name}}?">Delete</button>

CSS:

.link-button {
 background:none!important;
 color:inherit;
 border:none; 
 padding:0!important;
 font: inherit;
 /*border is optional*/
 border-bottom:1px solid #444; 
 cursor: pointer;

}

Marian Simonca
  • 1,472
  • 1
  • 16
  • 29