Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div id="app">
    <loading :active.sync="visible" :can-cancel="true"></loading>
    <button v-on:click="open">Programmatic Show</button>
  </div>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/vue-loading-overlay@3"></script>
  <link href="https://cdn.jsdelivr.net/npm/vue-loading-overlay@3/dist/vue-loading.css" rel="stylesheet">
</body>
</html>
 
Vue.use(VueLoading);
var app = new Vue({
  el: '#app',
  data: {
    LoaderVisiable: false
  },
  components: {
        Loading: VueLoading
  },
  methods:{
    open:function(){
      console.log('open');
      let loader = this.$loading.show({
                loader: 'dots'
            });
      setTimeout(() => loader.hide(), 3 * 1000);
    }
  }
})
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers