How to add a spinner while loading the content in AngularJS?

后端 未结 7 2076
谎友^
谎友^ 2021-01-02 02:09

I am using button spinner while loading the content, when the user clicks on the \"Search\" button content will load, at this time buttonLabel will be changed t

7条回答
  •  滥情空心
    2021-01-02 02:36

    You can also use this simple directive:

    https://rawgit.com/jvdvleuten/angular-button-spinner/master/demo.html

    To use it, just add the button-spinner='loading' attribute:

    
    

    It will append a spinner to it, inside the button, when your loading variable in the scope is true.

提交回复
热议问题