angular on davidchua https://dchua.com/tags/angular/ Recent content in angular on davidchua Hugo -- gohugo.io en-us Wed, 19 Nov 2014 00:00:00 +0000 How to add a confirmation dialog box in AngularJS https://dchua.com/posts/2014-11-19-how-to-add-a-confirmation-dialog-box-in-angularjs/ Wed, 19 Nov 2014 00:00:00 +0000 https://dchua.com/posts/2014-11-19-how-to-add-a-confirmation-dialog-box-in-angularjs/ Setting up a confirmation box can be quite tricky, here’s how to quickly get a confirmation box setup in AngularJS. Pre-requisite AngularJS is already loaded and running You are using real jQuery instead of jqLite (I’ll explain below) Prepare your HTML First, start off with a blank HTML page. Create a link that you would like to run a function() on when clicked and confirmed. It should look something like this: