mall><a href="#values">See valid values for promises</a></small></p>
            <p>When the button is clicked an internal handler is fired and assigns a promise handler to the assigned promise. Note that for that reason
            new promises are only detected on click.</p>
            <p>Any <code>ng-click</code> handler assigned to the element will be called before the internal handler so you can easily use the same <code>'click'</code> event to both assign a promise in your controller and for it to be