AngularJS Promise Button Directive

Author: DocX
Official Page: Go to website
Publish Date: May 27, 2015
License: MIT

Description:

Simple angular directive for button showing progress and result of promise (eg resource request call).

Features:

  • Adds visual feedback of progress, success or failure to button that starts async process (API request, …)
  • Disable button during processing to avoid double-requests by mistake clicking on button
  • Enables you to make button that waits X seconds to cancel mistake before actually commiting request

Preview:

ngPromiseButton


You Might Be Interested In:

Add Comment