Add data-loading-text="Loading..." to use a loading state on a button.
data-loading-text="Loading..."
<button type="button" id="fat-btn" data-loading-text="loading..." class="btn btn-primary"> Loading state </button>