
                </div>
                <div class="col-sm-8">
                  <p>Template:</p>
                  <pre class="prettyprint">
&lt;status-button 
  ng-click=&quot;setSuccessPromise()&quot; 
  promise=&quot;successPromise&quot;&gt;
  &lt;span&gt;Success&lt;/span&gt; 
&lt;/status-button&gt;
                  </pre>
                  <p>Controller:</p>
                  <pre class="prettyprint">
// Create a new promise that will succeed in 3 seconds
$scope.setSuccessPromise = function(){
  // Se