Using angularjs, I have a button to create tickets that works with an http request to call a PHP web service. The problem is that the http request has a delay of x seconds, allowing users to click multiple times during this delay resulting in multiple tickets being created but only one actually working. To solve this issue, I need to add a delay to the button itself. However, I am struggling to make this work. Please review the code and note that the solution should be implemented outside of the request
. Here is the link to the jsfiddle for reference: jsfiddle